Skip to content

Toggle Renderer Enabled ​

Show / hideRenderer.ToggleEnabled

Flip renderers between shown and hidden, keeping the object.

Flips renderers: shown ones are hidden and the other way round. Colliders and the object's other components keep working. To set a definite state, use Set Renderer Enabled.

It flips them only on the screen where the action runs. To hide the whole object, use Toggle Active.

Official docs: Renderer.enabled (Unity)

Settings

NameTypeDefault
TargetsRenderer list

On a card

WhenInteract⋯
What to do
Toggle Renderer Enabled⋯
TargetsNone
+ Add what to do

In Udon

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

{targets}.enabled = !{targets}.enabled;

In the same category