| source |
|---|
Extends SpawnControllerBase
Represents a controller used to spawn assets.
For information about usage, see Introduction to Asset Spawning.
export declare class SpawnController extends SpawnControllerBase Creates a controller for spawning an asset.
Signature
constructor(asset: Asset, position: Vec3, rotation: Quaternion, scale: Vec3);Parameters
asset: Asset
The asset to spawn.
position: Vec3
The position of the asset in the world.
rotation: Quaternion
The rotation of the asset in the world.
scale: Vec3
The scale of the asset in the world.
The asset that is currently being spawned.
Signature
readonly asset: Asset;