SpawnObjectAction - CodingDino/Dino-Unity-Toolkit GitHub Wiki
The SpawnObjectAction component creates a copy of a GameObject.
This is an Action component, and therefore must be triggered by a separate Activator component. Actions and Activators make up the core system for the Dino Unity Toolkit.
Image: SpawnObjectAction attached to a GameObject.
Image: SpawnObjectAction creating copies of the green square every 1 second, using a TimerAction component.
Actions
This component has several Action functions that can be triggered by Activators.
ActionSpawnObject()
This action creates a duplicate (clone) of the provided GameObject. It places the new clone at the position and rotation of the SpawnObjectAction's GameObject.
Parameter: | Description: |
---|---|
To Spawn | The original object that will be cloned. |