Turn on/off the light's gizmo in Code

Hi,

how i can toggle light’s gizmo in Code? Like in Scene Explorer click on eye?

1 Like

You can simply create a new LightGizmo:

var gizmo = new BABYLON.LightGizmo()
gizmo.light = light;

https://playground.babylonjs.com/#7KX2R8#220

2 Likes