Exemple #1
0
    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();
    }
Exemple #2
0
    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();
    }
Exemple #3
0
    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();
    }