Skip to content

On Player Trigger Stay ​

Physics & collisionsDetailedOnPlayerTriggerStay

Every physics step while a player stays in this trigger collider.

Needs an area on this object (a collider with Is Trigger on); Add an area on the card adds one.

This event happens often: keep heavy work out of it, and keep it on Only my screen.

Happens again and again while a player's capsule is inside the area (a collider with Is Trigger on). VRChat's docs describe it as every frame, for any player in the instance. Whose on the card starts as Me.

If entering and leaving are enough, use On Player Trigger Enter and On Player Trigger Exit instead.

Starting a timer here restarts it each time, so it never fires. Changing a synced variable here sends it each time it changes, which can delay other sync.

Official docs: Player Collisions (VRChat), Event Nodes (VRChat)

Event values

Values this event has; action settings can use them as targets or values.

NameType
That playerPlayer

On a card

WhenOn Player Trigger Stay⋯
What to do
+ Add what to do

In Udon

In UdonSharp, this is the method:

public override void OnPlayerTriggerStay(VRCPlayerApi player)

In the same category