This version of Unity is unsupported.

Handles.ShouldRenderGizmos

Declaration

public static bool ShouldRenderGizmos();

Description

Determines whether or not to draw Gizmos.

This helper function abstracts the state of Gizmos being enabled or not in the Game and Scene view.