コード例 #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        TerrainGenerator generator = (TerrainGenerator)target;

        if (GUILayout.Button("Build Map"))
        {
            generator.Generate();
        }

        if (GUILayout.Button("Clear Tiles"))
        {
            generator.ClearTilemap();
        }
    }