Пример #1
0
        public static SpriteAtlasEditorWindow OpenEditorWindow(SpriteAtlas spriteAtlas)
        {
            SpriteAtlasEditorWindow window = OpenEditorWindow();

            window.Load(spriteAtlas);
            return(window);
        }
Пример #2
0
        public static SpriteAtlasEditorWindow OpenEditorWindow()
        {
            SpriteAtlasEditorWindow window = GetWindow <SpriteAtlasEditorWindow>();

            window.titleContent = new GUIContent(WINDOW_TITLE, EditorGUIUtility.Load("SpriteAtlas On Icon") as Texture2D);
            window.Show();
            window.Focus();
            return(window);
        }
Пример #3
0
 public static void OpenEditorWindow()
 {
     SpriteAtlasEditorWindow.OpenEditorWindow();
 }
Пример #4
0
        public static void AssetOpenEditorWindow()
        {
            SpriteAtlas spriteAtlas = Selection.activeObject as SpriteAtlas;

            SpriteAtlasEditorWindow.OpenEditorWindow(spriteAtlas);
        }