diff --git a/Assets/Fungus/Scripts/Editor/ViewEditor.cs b/Assets/Fungus/Scripts/Editor/ViewEditor.cs index db4da11f..127465ef 100644 --- a/Assets/Fungus/Scripts/Editor/ViewEditor.cs +++ b/Assets/Fungus/Scripts/Editor/ViewEditor.cs @@ -22,10 +22,9 @@ namespace Fungus.EditorUtils #else [DrawGizmo(GizmoType.NotInSelectionHierarchy | GizmoType.InSelectionHierarchy, typeof(View))] #endif - static void RenderCustomGizmo(Transform objectTransform, GizmoType gizmoType) + public static void RenderCustomGizmo(View view, GizmoType gizmoType) { - View view = objectTransform.gameObject.GetComponent(); - DrawView(view, false); + DrawView(view, false); } protected virtual Vector2 LookupAspectRatio(int index)