Skip to main content

Object Spawn System

Object Spawn System is an UdonSharp system for managing the visibility of objects in VRChat worlds.

It is useful in settings such as restaurant worlds, where you may want to spawn only the required number of pickup items and hide them again after use.

Features​

  • Interact with a Spawn switch to spawn an item
  • Place an object in a Return trigger to hide it
  • Interact with a Reset switch to hide all currently visible objects at once
  • Move a spawned object to a specified point or to the hand of the player who used the switch

See Configure VRCObjectPool to prepare objects for spawning.

Tested environment​

  • Unity 2022.3.31f1
  • VRChat SDK - Worlds 3.10.4

Start with Installation and testing, then verify the system in the included sample scene.

Components​

RoleComponentBehavior
SpawnSpawnObjectSpawns one object managed by VRCObjectPool
HideReturnObjectHides an object that enters its trigger
ResetResetSwitchUses ReturnObject to hide all target objects

License and support​

Object Spawn System is released under the MIT License. See LICENSE.txt in the distributed package for details.