The Spawner makes objects appear. The Spawner can create objects, reference objects or Reusables.
Spawn a reusable or turn the target object into a reference object to ensure it isn't visible before the node is executed.
The node also has a direction in which a created object can be shot. Alternatively, you can define a target towards which the created object will be hurled.
Object To Spawn | The object that will be spawned. Drag a link to an object or use the Set button. Set - When you tap the Set button, you'll see a list of all Reusables in your game. Select the Reusable to spawn. |
Spawn At | You can define the location where an object will be spawned: simply place a new object to the scene, make it invisible if needed, and drag a link from Spawn At to this new object. If there is no Spawn At target, spawned objects appear at the location of the node. |
Shoot Towards | You can make a spawned object shoot towards a target object. If there is no Shoot Towards target, the spawned object will be hurled to the node's direction (the arrow that you see when the node is selected). Note: Set an appropriate Shoot Force if you want to shoot an object (see below) |
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 spawned object based on the Spawn At target’s rotation. Tip: Try toggling this if a spawned object faces to a wrong direction |
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 a vector as the 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 appear for other players in a custom multiplayer game |
Offset | Shift the position at which an object is created. Set it manually with the X, Y and Z values or use an input value from other nodes. |
↳ X, Y & Z | Manually set the offset for each axis |
Shoot Force | The speed at which the object is spawned at |
Max Target Distance | If the distance between the Spawn At location and the Shoot Towards object is bigger than this value, the node will not spawn anything. |
Look At Direction | Set or input a Vector position as the Shoot Towards target |
↳ X, Y & Z | Set the Shoot Towards position vector manually or with other logic nodes |
Scale Vector | Scale Vector defines the size of the spawned object. You can use an input value from other nodes |
↳ X, Y & Z | Set the size of spawned object with X, Y and Z values. Values below 1 make the object smaller, values above 1 make it bigger |
Rotation | Input a rotation from the Axis-Angle or Rotation Math Nodes |
On Object Created | Send a signal to other nodes when an object has been spawned. This output also sends a reference to the created object. |
Here's a link to a demo that shows how to use the Spawner node: