Esempio n. 1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        GridMesh myScript = (GridMesh)target;

        if (GUILayout.Button("Generate Grid"))
        {
            myScript.CreateGridMesh();
        }
    }