예제 #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        if (GUILayout.Button("Regenerate"))
        {
            TGMap tileMap = (TGMap)target;
            tileMap.BuildMesh();
        }
    }
예제 #2
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        if (GUILayout.Button("Regenerate"))
        {
            TGMap map = (TGMap)target;
            map.BuildMesh();
        }
    }
예제 #3
0
//	float v = 0.5f;

    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

//		EditorGUILayout.BeginVertical ();
//		v = EditorGUILayout.Slider (v, 0, 2.0f);
//		EditorGUILayout.EndVertical ();

        if (GUILayout.Button("Regenerate"))
        {
            TGMap tileMap = (TGMap)target;
            tileMap.BuildMesh();
        }
    }