Пример #1
0
 private void DrawRequest()
 {
     if (isFoldoutRequestSet == null || isFoldoutRequestSet.Length != dictRequestSet.Count)
     {
         isFoldoutRequestSet = new bool[dictRequestSet.Count];
     }
     EditorUtilityEx.DrawDictionary <ResourceRequestSet> (
         "Request", dictRequestSet, ref isFoldoutRequest,
         (int count, string key, ResourceRequestSet value) => {
         isFoldoutRequestSet [count] = EditorGUILayout.Foldout(isFoldoutRequestSet [count], key);
         if (isFoldoutRequestSet [count] == true)
         {
             EditorGUI.indentLevel++;
             EditorGUILayout.Toggle("IsComplete", value.IsComplete());
             bool dammy = true;
             EditorUtilityEx.DrawList("List", new List <ResourceRequestItem> (value.GetList()), ref dammy,
                                      (int index, ResourceRequestItem item) => {
                 EditorGUILayout.EnumPopup("Type", item.type);
                 EditorGUILayout.TextField("Url", item.url);
             }
                                      );
             EditorGUI.indentLevel--;
         }
     }
         );
 }
 private void DrawSceneNodeSet()
 {
     if (isSceneNodeFoldout == null || isSceneNodeFoldout.Length != sceneNodeSet.nodeList.ToArray().Length)
     {
         isSceneNodeFoldout = new bool[sceneNodeSet.nodeList.ToArray().Length];
     }
     EditorUtilityEx.DrawList <SceneNode> ("SceneNodeSet", new List <SceneNode> (sceneNodeSet.nodeList), ref isFoldout_2,
                                           (int index, SceneNode node) => {
         isSceneNodeFoldout [index] = EditorGUILayout.Foldout(isSceneNodeFoldout [index], node.name);
         if (isSceneNodeFoldout [index] == true)
         {
             EditorGUI.indentLevel++;
             EditorGUILayout.EnumPopup("Type", node.sceneType);
             EditorGUILayout.EnumPopup("State", node.state);
             EditorGUILayout.Toggle("isActive", node.isActive);
             EditorGUILayout.Toggle("isVisible", node.isVisibled);
             EditorGUI.indentLevel--;
         }
     });
 }
 private void DrawCollectionIgnoreObjectName()
 {
     EditorUtilityEx.DrawList <string> ("CollectionIgnoreObjectName", listCollectionIgnoreObjectName, ref isFoldout_1);
 }