Skip to content

On Spawn ​

Sync & saved dataDetailedOnSpawn

This object was spawned from a VRC Object Pool. Deprecated by VRChat: use On Enable instead.

The event for being taken out of a VRC Object Pool, but the official docs mark it deprecated. To do something when an object is spawned from a pool, use OnEnable.

A VRC Object Pool syncs whether each of its objects is active. Only the pool's owner can spawn (TryToSpawn) and return (Return) objects. Returned objects are disabled automatically, and players who join later see the same objects active or inactive.

Official docs: Network Components (VRChat)

On a card

WhenOn Spawn⋯
What to do
+ Add what to do

In Udon

In UdonSharp, this is the method:

public override void OnSpawn()

In the same category