Пример #1
0
        public static void PackAllRes_android()
        {
            platform = "android";

            PackRes_Textures.platform = platform;
            PackRes_Textures.Pack_Textures();

            PackRes_Gui.platform = platform;
            PackRes_Gui.Pack_Gui();

            PackRes_Scene.platform = platform;
            PackRes_Scene.Pack_Scene();

            //**********************
            GenerateIndexFile();
            CopyResourceToStreamAssetDirectory(platform);
        }
Пример #2
0
        public static void PackAllRes_webPlayer()
        {
            platform = "webplayer";

            PackRes_Textures.platform = platform;
            PackRes_Textures.Pack_Textures();

            PackRes_Gui.platform = platform;
            PackRes_Gui.Pack_Gui();

            PackRes_Scene.platform = platform;
            PackRes_Scene.Pack_Scene();

            //**********************
            GenerateIndexFile();
            CopyResourceToStreamAssetDirectory(platform);

            EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTarget.StandaloneWindows);
            //EditorApplication.ExecuteMenuItem("Assets/Sync MonoDevelop Project");
        }