- Home /
Question by
Sinterklaas · Dec 08, 2020 at 11:56 AM ·
gizmosmultiple cameras
Restricting built-in gizmos to one camera?
I use a camera system with multiple cameras, causing problems with gizmos rendering to all of them. I know you can solve this issue for custom scripts by putting the following code at the beginning of every OnDrawGizmos function:
if (Camera.current != Camera.main)
return;
However, I obviously can't do this for Unity's built-in components (lights, colliders, etc). Is there a known solution for this?
Comment