@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / SpawnPrefabOptions
Type Alias: SpawnPrefabOptions ​
ts
type SpawnPrefabOptions = {
parentId?: EntityId | null;
position?: Vec3Like;
rotation?: Vec3Like;
scale?: Vec3Like;
};Defined in: prefab/spawnPrefab.ts:111
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
parentId? | EntityId | null | Parent the spawned root under this entity (default: world root). | prefab/spawnPrefab.ts:113 |
position? | Vec3Like | Local-space spawn transform for the root (partial axes allowed). | prefab/spawnPrefab.ts:115 |
rotation? | Vec3Like | - | prefab/spawnPrefab.ts:116 |
scale? | Vec3Like | - | prefab/spawnPrefab.ts:117 |

