コード例 #1
0
 public static void ObjectNodeGUI(ObjectNode objectNode, InterfaceableContainerPropertyDrawer.SerializedContainer serializedContainer, GUIStyle style, int indentLevel)
 {
     InterfaceableGUIHelper.HorizontalBlock(() =>
     {
         var helper = new GUIObjectNodeHelper(objectNode, serializedContainer);
         helper.DrawGUI(style, indentLevel);
     });
 }
コード例 #2
0
    private void GUIObjectNode(ObjectNode objectNode, int indentLevel = 0)
    {
        GUIObjectNodeHelper.ObjectNodeGUI(objectNode, _serializedContainer, GetNextStyle(), indentLevel);

        if (objectNode.Foldout)
        {
            foreach (var child in objectNode.Children)
            {
                GUIObjectNode(child, indentLevel + 1);
            }
        }
    }
コード例 #3
0
 public static void ObjectNodeGUI(ObjectNode objectNode, IUnifiedContainerPropertyDrawer.SerializedContainer serializedContainer, GUIStyle style, int indentLevel)
 {
     IUnifiedGUIHelper.HorizontalBlock(() =>
     {
         var helper = new GUIObjectNodeHelper(objectNode, serializedContainer);
         helper.DrawGUI(style, indentLevel);
     });
 }