Skip to main content

SpawnObjectExt settings

SpawnObjectExt inherits the settings of SpawnObject from Object Spawn System and adds multiple spawn points and event notifications.

FieldTypeDescription
VRC Object PoolVRCObjectPoolThe Object Pool containing the spawn targets
Random SpawnboolRandomizes the Pool order when SpawnObjectExt becomes enabled
Move Item To HandboolMoves the spawned object to whichever hand is closer to the switch
DestinationSelectionSelects 単一 (Single) or 複数 (Multiple)
Spawn PointTransformPosition and rotation used in Single mode
Spawn PointsTransform[]Destinations used in Multiple mode
Selects the nearest valid point to the player
Spawn Delay FramesintNumber of frames to wait between spawning and moving a normal object
Default: 3
Notify Spawn itemboolSends OnPurabeSpawn to every UdonBehaviour directly attached to the spawned root
Notify external UdonBehavioursboolSends OnPurabeSpawn to External Event Targets
External Event TargetsUdonBehaviour[]External recipients of the Spawn event
Audio SourceAudioSourceAudio source used after a successful Spawn
No sound is played when omitted
Audio ClipAudioClipClip played after a successful Spawn
When omitted, the clip assigned to Audio Source is used; no sound is played when neither is assigned

Random Spawn​

When enabled, the spawn order is shuffled when SpawnObjectExt becomes enabled, such as when the world starts.

Destination​

Single and Multiple modes are not used at the same time. Switching modes in the Inspector clears the setting for the unused mode.

Unassigned entries in Spawn Points are excluded when finding the nearest destination. Registering the same Transform more than once works, but duplicate entries are unnecessary.

Items with helper components​

If the spawned root contains HGSpawnHelper or CompSpawnHelper, the helper moves its target instead of using the normal movement logic.

Normal objects use Spawn Delay Frames. Objects with helper components use Move Delay on the helper.

Movement destination priority​

  1. If Move Item To Hand is enabled, the hand closer to the switch
  2. In Single mode, Spawn Point
  3. In Multiple mode, the Spawn Point nearest to the player
  4. If no valid destination exists, the initial position of the object registered in the Pool

Spawn Delay Frames​

Normal objects move after waiting several frames instead of moving immediately after spawning. Spawn Delay Frames specifies the number of frames to wait between spawning and moving the object.

Normally, use the default value of 3. If movement is not applied correctly, increase the value gradually and test again.

Normal objects spawned in quick succession are placed in an internal queue and moved in order. Objects with helper components use Move Delay on the helper.

See Configure multiple spawn points for setup instructions.