diff --git a/Assets/Fungus/Camera/Editor/ViewEditor.cs b/Assets/Fungus/Camera/Editor/ViewEditor.cs index a9c6fe21..51e79e73 100644 --- a/Assets/Fungus/Camera/Editor/ViewEditor.cs +++ b/Assets/Fungus/Camera/Editor/ViewEditor.cs @@ -17,7 +17,11 @@ namespace Fungus protected SerializedProperty viewSizeProp; // Draw Views when they're not selected +#if UNITY_5_0 + [DrawGizmo(GizmoType.NotSelected | GizmoType.SelectedOrChild)] +#else [DrawGizmo(GizmoType.NotInSelectionHierarchy | GizmoType.InSelectionHierarchy)] +#endif static void RenderCustomGizmo(Transform objectTransform, GizmoType gizmoType) { View view = objectTransform.gameObject.GetComponent();