From 25d596ee7ed029c098860ecf0043bb6dc2b43067 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Fri, 12 Jun 2015 10:04:50 +0100 Subject: [PATCH] Fixed compile errors on Unity 5.0.1 #117 --- Assets/Fungus/Camera/Editor/ViewEditor.cs | 4 ++++ 1 file changed, 4 insertions(+) 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();