- Home /
GUI Layout During Gizmo Painting In The Editor
Is using GUILayout supported while drawing custom gizmos in Unity?
Getting this error: Getting control 1's position in a group with only 1 controls when doing Repaint
While doing something like this:
[DrawGizmo(GizmoType.Selected | GizmoType.Selected | GizmoType.NonSelected | GizmoType.Pickable)]
static void DrawGizmos(MyType myObject, GizmoType gizmoType)
{
Handles.BeginGUI();
GUILayout.BeginArea(new Rect(Screen.width / 2, Screen.height / 2, 100, 100));
GUILayout.Button("I am completely inside an Area");
GUILayout.EndArea();
Handles.EndGUI();
}
Comment
Your answer
