The Spawner will emit objects when executed based on it's parameters. The Spawner can use Objects, reference objects or Reusable containers as Spawned Objects.
If the Spawned Object is set as a Reference Object , then it will emit a duplicated instance.
The component has a direction in which the emitted object will be "shot". Depending on the settings this direction will either be determined by the orientation of the Spawner Node or the orientation of the Spawn From Object.
Object To Spawn | The object that will be spawned from, the Spawner. You can drag from the arrow to select an object in the Editor or use the Set button. Set - Tap the Set button to select the Object to Spawn from a dropdown list of all Reusables in the Hype project. |
Spawn At | The object from which the Object to Spawn will be emitted. Drag from the arrow to select an object in the Editor. If no object is selected the Object to Spawn will be emitted from the Spawner Node. |
Shoot Towards | The target object the spawned object is aimed towards. If nothing is selected the Object to Spawn will be emitted in the direction of the arrow visualization that appears when the Spawner Node is selected. |
Execute | Executes the Node |
↳ On Start | Executes the Node at the start of the game |
Enabled | Enable or disable the node. Disabled Nodes cannot be executed |
Use Spawner Local Transform | Uses local transform of the Spawn At object to determine the spawn direction. |
Require Shoot Target | Only executes the component when it has a Shoot Towards target that is within the Max Target Distance |
Use Spawn Point Rotation | Rotates the emitted object based on the Spawn At target’s rotation. |
Offset As Absolute Transform | Determines if Offset X / Y / Z should be used as an absolute transform instead of a local offset. |
Use Vector Input | Uses Vector as a spawn location |
Scale with Object | The Max Target Distance & Shoot Force increase or decrease based on the scale of the Spawn At target |
Sync Multiplayer | If toggled off the spawned object won't be spawned for other clients in multiplayer. |
Offset | Set or input the Offset for the start position of the spawned object. |
↳ X, Y & Z | Manually set the offset for each axis |
Shoot Force | The speed value the object is spawned at. |
Max Target Distance | Allows the component to only emit the object when the distance between the Spawn From Object target and the Targeted Object object is under this value. |
Look At Vector | Set or input a Vector position as the Shoot Towards target |
↳ X, Y & Z | Manually set the Vector position of the Shoot Towards target |
Scale Vector | Set or input a Vector to use as the scale of the Spawner |
↳ X, Y & Z | Manually set each vector value to use as the scale of the Spawner |
Rotation | Input a rotation from the Axis-Angle or Rotation Math Nodes |
On Object Created | Outputs a reference to the spawned object when the object is created. |
Here's a link to the hype that shows how to implement and use the Spawner node: