예제 #1
0
    //This Function is called when you click the menu entry
    private static void CreateStartBrush()
    {
        string     fileName = "StartBrush";
        StartBrush mytb     = new StartBrush();

        mytb.name = fileName + ".asset";
        AssetDatabase.CreateAsset(mytb, "Assets/Tilemap/Brushes/" + mytb.name + "");
    }
예제 #2
0
    public override void OnPaintInspectorGUI()
    {
        StartBrush myTarget = (StartBrush)target;

        myTarget.IsStart = GUILayout.Toggle(myTarget.IsStart, "Start");
    }