Exemplo n.º 1
0
    void LoadBrushImage()
    {
        string szDir = Application.dataPath + "/Editor/Resources/Brushes/";
        string file  = EditorUtility.OpenFilePanel("Load Brush", szDir, "");

        if (file.Length > 0)
        {
            string szFNm = "Brushes/" + Path.GetFileNameWithoutExtension(file);
            TexMixBrush.NtfCreateBrush(szFNm);
        }
    }
Exemplo n.º 2
0
    static void Execute()
    {
#if !UNITY_STANDALONE_WIN
        Debug.LogError("Only WORK on Windows Platform: file--> Build Setting --> PC, Mac.. --> Windows");
#endif
        GameObject obj = EditorUtil.GetEditTarget();
        //if(obj != mSelObj)
        {
            mSelObj = obj;
            TexMixBrush.NtfCreateBrush("Brushes/brush_14");
            if (TexMixUtil.NtfAttachTarget(mSelObj))
            {
                mCurOp = TEOM_ENABLE;
            }
        }
    }