Next: , Previous: , Up: Interaction.Output   [Contents][Index]


9.2.8 Message Spawner

Component: MessageSpawner

Simply send ’Spawn’ or ’SpawnAsChild’ to this component to instantiate ’Item’ at ’SpawnPoint’. ’Item’ does not have to be an Inventory Pickable, but it can be if you wish. It can be any object that you want to instantiate into your game for any reason. For example you could spawn anthropomorphic bullets out of a cartoon cannon in your level using this, or you could spawn items or even invisible sound effect objects. Really, any prefab is a valid choice.

Field of MessageSpawner: bool poolObjects

Should objects be added to a list and respawned from the pool? Objects are available to pool if they are disabled in the Heirarchy when a ’Spawn’ event occurs.

Default value: false

Spawn Options

Field of MessageSpawner: bool inheritVelocity

Should the spawned object inherit our velocity?

Default value: true

Message on MessageSpawner: Spawn ()

Spawns the ’Item’ at ’Spawn Point’.

Message on MessageSpawner: SpawnAsChild ()

Spawns the ’Item’ at ’Spawn Point’ and then parents it to the spawn point.

Field of MessageSpawner: bool poolObjects

Should objects be added to a list and respawned from the pool? Objects are available to pool if they are disabled in the Heirarchy when a ’Spawn’ event occurs.

Default value: false

Spawn Options

Field of MessageSpawner: bool inheritVelocity

Should the spawned object inherit our velocity?

Default value: true

Message on MessageSpawner: Spawn ()

Spawns the ’Item’ at ’Spawn Point’.

Message on MessageSpawner: SpawnAsChild ()

Spawns the ’Item’ at ’Spawn Point’ and then parents it to the spawn point.


Next: , Previous: , Up: Interaction.Output   [Contents][Index]