Skip to content

@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 ​

PropertyTypeDescriptionDefined in
parentId?EntityId | nullParent the spawned root under this entity (default: world root).prefab/spawnPrefab.ts:113
position?Vec3LikeLocal-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