public override void OnInspectorGUI() { Treeifier system = target as Treeifier; if (GUILayout.Button("Extract Tree Prototype Data")) { system.GenerateTreePrototypeData(); system.ExtractXMLTreePrototypeData(); system.ExtractTreeLODPrototypeData(); } if (GUILayout.Button("Generate Trees")) { system.GenerateTrees(); } if (GUILayout.Button("Cell Info")) { system.PrintPossibleCellCounts(); } /* * myTarget.experience = EditorGUILayout.IntField("Experience", myTarget.experience); * EditorGUILayout.LabelField("Level", myTarget.Level.ToString()); * * GUILayout.Space(20); * foreach(Terrain terrain in system.m_ManagedTerrains) * { * if (GUILayout.Button("Store [" + terrain.name + "] Trees")) * { * * } * * if (GUILayout.Button("Restore [" + terrain.name + "] Trees")) * { * * } * } */ // EditorGUILayout.PropertyField(serializedObject.FindProperty("m_MainManagedTerrain")); DrawDefaultInspector(); }
public override void OnInspectorGUI() { Treeifier system = target as Treeifier; if (GUILayout.Button("Extract Tree Prototype Data")) { system.GenerateTreePrototypeData(); system.ExtractXMLTreePrototypeData(); system.ExtractTreeLODPrototypeData(); } if (GUILayout.Button("Generate Trees")) { system.GenerateTrees(); } if (GUILayout.Button("Cell Info")) { system.PrintPossibleCellCounts(); } /* * GUILayout.Space(20); * foreach(Terrain terrain in system.m_ManagedTerrains) * { * if (GUILayout.Button("Store [" + terrain.name + "] Trees")) * { * * } * * if (GUILayout.Button("Restore [" + terrain.name + "] Trees")) * { * * } * } */ DrawDefaultInspector(); }
public override void OnInspectorGUI() { Treeifier system = target as Treeifier; if (GUILayout.Button("Extract Tree Prototype Data")) { system.GenerateTreePrototypeData(); system.ExtractXMLTreePrototypeData(); system.ExtractTreeLODPrototypeData(); } if (GUILayout.Button("Generate Trees")) { system.GenerateTrees(); } if (GUILayout.Button("Cell Info")) { system.PrintPossibleCellCounts(); } DrawDefaultInspector(); }