Toggle Collider Enabled
Show / hideCollider.ToggleEnabled
Flip colliders between enabled and disabled.
Flips colliders: enabled ones become disabled and the other way round. The look stays, so it suits walls you can walk through now and then, or buttons that can't be pressed for a while. To set a definite state, use Set Collider Enabled.
It flips them only on the screen where the action runs. Disabling an area (an Is Trigger collider) also stops that area's events.
Official docs: Collider.enabled (Unity)
Settings
| Name | Type | Default |
|---|---|---|
| Targets | Collider list |
On a card
WhenInteract⋯
What to do
Toggle Collider Enabled⋯
TargetsNone
+ Add what to do
In Udon
Roughly this code, once per target ({ } are the settings):
{targets}.enabled = !{targets}.enabled;