Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url http://localhost:3917/prefab/spawn \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "position": [ 123 ] } '
{ "entity_generation": 0, "entity_id": 9, "name": "tower", "ok": true }
spawn a named prefab at a position
Prefab instantiated from the PrefabRegistry; returns the new entity id/generation. Returns ok:false with an error when the named prefab is not registered.
PrefabRegistry
ok:false
error