Home

Awesome

Editor GUI Hierarchy View

EditorGUIHierarchyView is an utility view that allows you to easily add a hierarchy view (think Unity's scene view) to your Editor Windows.

Features

Example


EditorGUIHierarchyView hierarchyView = new EditorGUIHierarchyView();

public void OnGUI ()
{
	hierarchyView.BeginHierarchyView ();

	hierarchyView.BeginNode ("Select me");
		hierarchyView.Node ("Child");
		hierarchyView.BeginNode ("Another parent");
			hierarchyView.Node ("Grandson");
		hierarchyView.EndNode ();
	hierarchyView.EndNode ();

	hierarchyView.Node ("No children");
	hierarchyView.Node ("Hello");

	hierarchyView.EndHierarchyView ();

	Repaint ();
}