unity check if gizmos are enabled code example Example: how to set a gizmo color unity void OnDrawGizmos(){ Gizmos.color = Color.red; }