|
|
@ -18,17 +18,14 @@ namespace Fungus.EditorUtils |
|
|
|
|
|
|
|
|
|
|
|
// Draw Views when they're not selected |
|
|
|
// Draw Views when they're not selected |
|
|
|
#if UNITY_5_0 |
|
|
|
#if UNITY_5_0 |
|
|
|
[DrawGizmo(GizmoType.NotSelected | GizmoType.SelectedOrChild)] |
|
|
|
[DrawGizmo(GizmoType.NotSelected | GizmoType.SelectedOrChild, typeof(View))] |
|
|
|
#else |
|
|
|
#else |
|
|
|
[DrawGizmo(GizmoType.NotInSelectionHierarchy | GizmoType.InSelectionHierarchy)] |
|
|
|
[DrawGizmo(GizmoType.NotInSelectionHierarchy | GizmoType.InSelectionHierarchy, typeof(View))] |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
static void RenderCustomGizmo(Transform objectTransform, GizmoType gizmoType) |
|
|
|
static void RenderCustomGizmo(Transform objectTransform, GizmoType gizmoType) |
|
|
|
{ |
|
|
|
{ |
|
|
|
View view = objectTransform.gameObject.GetComponent<View>(); |
|
|
|
View view = objectTransform.gameObject.GetComponent<View>(); |
|
|
|
if (view != null) |
|
|
|
DrawView(view, false); |
|
|
|
{ |
|
|
|
|
|
|
|
DrawView(view, false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected virtual Vector2 LookupAspectRatio(int index) |
|
|
|
protected virtual Vector2 LookupAspectRatio(int index) |
|
|
|