Browse Source

Fixed compile errors on Unity 5.0.1 #117

master
chrisgregan 10 years ago
parent
commit
25d596ee7e
  1. 4
      Assets/Fungus/Camera/Editor/ViewEditor.cs

4
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<View>();

Loading…
Cancel
Save