コード例 #1
0
        public static void CreateLastAtlas()
        {
            var data = new SpriterData2DToolkit();

            if (!String.IsNullOrEmpty(EditorPrefs.GetString("SpriterNGUILastPath")))
            {
                data.LoadData(EditorPrefs.GetString("SpriterNGUILastPath"));
            }
        }
コード例 #2
0
        public static void CreateAtlas()
        {
            var data = new SpriterData2DToolkit();

            string lastPath = EditorPrefs.GetString("SpriterNGUILastPath");
            if (String.IsNullOrEmpty(lastPath))
                lastPath = Application.dataPath;

            lastPath = EditorUtility.OpenFilePanel("Open Spriter File", lastPath, "scml");
            EditorPrefs.SetString("SpriterNGUILastPath", lastPath);

            if (!String.IsNullOrEmpty(lastPath))
            {
                data.LoadData(lastPath);
            }
        }