Ejemplo n.º 1
0
 static internal void OnTextureReimport(SpriteEditorWindow win, string path)
 {
     if (win.m_SelectedAssetPath == path)
     {
         win.m_ResetOnNextRepaint = true;
         win.Repaint();
     }
 }
Ejemplo n.º 2
0
        static internal void OnTextureReimport(string path)
        {
            UnityEngine.Object[] wins = Resources.FindObjectsOfTypeAll(typeof(SpriteEditorWindow));
            SpriteEditorWindow   win  = wins.Length > 0 ? (EditorWindow)(wins[0]) as SpriteEditorWindow : null;

            if (win != null && win.m_SelectedAssetPath == path)
            {
                win.m_ResetOnNextRepaint = true;
                win.Repaint();
            }
        }