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
| Name | Type | Default |
|---|---|---|
| Targets | Collider list | |
| On | On/Off | true |
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};