Skip to content

Set Collider Enabled ​

Show / hideCollider.SetEnabled

Enable or disable colliders.

Turns only colliders on or off: the object stays visible but can't be clicked, or can be walked through.

A disabled collider no longer collides with other colliders. The change happens only on the screen where the action runs. To keep everyone in step, react to a synced variable with On Variable Changed and run this action there (The same state for everyone).

Official docs: Collider.enabled (Unity)

Settings

NameTypeDefault
TargetsCollider list
OnOn/Offtrue

On a card

WhenInteract⋯
What to do
Set Collider Enabled⋯
TargetsNone
OnOn
+ Add what to do

In Udon

Roughly this code, once per target ({ } are the settings):

{targets}.enabled = {enabled};

In the same category