-
-
Notifications
You must be signed in to change notification settings - Fork 89
Events
PhaxeNor edited this page Oct 20, 2020
·
18 revisions
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 |
These are the method stubs you can override via UdonSharpBehaviour
.
These methods have to be public
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(VRCPlayerApi) | Requires VRC_Station |
OnStationExited(VRCPlayerApi) | Requires VRC_Station |
OnVideoEnd | When the video player ends playback |
OnVideoError(VideoError) | When an error occurs with the player |
OnVideoLoop | If looping is enabled, this will fire at the end |
OnVideoPause | When the video player is paused |
OnVideoPlay | When you start playing a video |
OnVideoStart | When a video is playing for the first time? |
OnVideoReady | When the video player has loaded the url |
OnPreSerialization | Fired before sending network data |
OnDeserialization | Fired when network data is received |
OnPlayerTriggerEnter(VRCPlayerApi) | Player enters a trigger |
OnPlayerTriggerStay(VRCPlayerApi) | Player stays in a trigger |
OnPlayerTriggerExit(VRCPlayerApi) | Player leaves a trigger |
OnPlayerCollisionEnter(VRCPlayerApi) | Player collides with a collider |
OnPlayerCollisionStay(VRCPlayerApi) | Player stays on a collider |
OnPlayerCollisionExit(VRCPlayerApi) | Player leaves the collider |
OnPlayerParticleCollision(VRCPlayerApi) | A collision particle hits the player |