SpawnObjectExt settings
SpawnObjectExt inherits the settings of SpawnObject from Object Spawn System and adds multiple spawn points and event notifications.
| Field | Type | Description |
|---|---|---|
| VRC Object Pool | VRCObjectPool | The Object Pool containing the spawn targets |
| Random Spawn | bool | Randomizes the Pool order when SpawnObjectExt becomes enabled |
| Move Item To Hand | bool | Moves the spawned object to whichever hand is closer to the switch |
| Destination | Selection | Selects 単一 (Single) or 複数 (Multiple) |
| Spawn Point | Transform | Position and rotation used in Single mode |
| Spawn Points | Transform[] | Destinations used in Multiple mode Selects the nearest valid point to the player |
| Spawn Delay Frames | int | Number of frames to wait between spawning and moving a normal object Default: 3 |
| Notify Spawn item | bool | Sends OnPurabeSpawn to every UdonBehaviour directly attached to the spawned root |
| Notify external UdonBehaviours | bool | Sends OnPurabeSpawn to External Event Targets |
| External Event Targets | UdonBehaviour[] | External recipients of the Spawn event |
| Audio Source | AudioSource | Audio source used after a successful Spawn No sound is played when omitted |
| Audio Clip | AudioClip | Clip 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
- If
Move Item To Handis enabled, the hand closer to the switch - In Single mode,
Spawn Point - In Multiple mode, the
Spawn Pointnearest to the player - 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.