Skip to content
PhaxeNor edited this page May 5, 2020 · 18 revisions

Unity Events

These are the method stubs available for Unity events.

Events
FixedUpdate OnJointBreak OnRenderImage
LateUpdate OnJointBreak2D OnRenderObject
OnAnimatorIK OnMouseDown OnTransformChildrenChanged
OnAnimatorMove OnMouseDrag OnTransformParentChanged
OnCollisionEnter OnMouseEnter OnTriggerEnter
 OnCollisionEnter2D OnMouseExit OnTriggerEnter2D
OnCollisionExit OnMouseOver OnTriggerExit
OnCollisionExit2D OnMouseUp OnTriggerExit2D
OnCollisionStay OnMouseUpAsButton OnTriggerStay
OnCollisionStay2D OnParticleCollision OnTriggerStay2D
OnControllerColliderHit OnParticleTrigger OnWillRenderObject
OnDestroy OnPostRender Start
OnDisable OnPreCull Update
OnEnable OnPreRender

Udon Events

These are the method stubs you can override via UdonSharpBehaviour.

public override void <method>() {}
Name
Interact Fired when a user interacts with the object
Will add a box collider if no collider is present.
OnDrop Requires VRC_Pickup
OnOwnershipTransferred Fired every time a UdonBehaviour changes owner
OnPickup Requires VRC_Pickup
OnPickupUseDown Requires VRC_Pickup
OnPickupUseUp Requires VRC_Pickup
OnPlayerJoined(VRCPlayerApi) Fired when a new player joins the instance
OnPlayerLeft(VRCPlayerApi) Fired when a player leaves the instance
OnSpawn Fired when a object is spawned via network instantiation
OnStationEntered Requires VRC_Station
OnStationExited Requires VRC_Station
OnVideoEnd No video player support yet
OnVideoPause No video player support yet
OnVideoPlay No video player support yet
OnVideoStart No video player support yet
OnPreSerialization Fired before sending network data
OnDeserialization Fired when network data is received