Exemplo n.º 1
0
        /*删除*/
        void DeleteHLODs(HLODGenerate hlodGenerate)
        {
            DestroyImmediate(hlodGenerate.m_RootLODVolume);
            DestroyImmediate(hlodGenerate.m_HLODS);
            hlodGenerate.DeleteExportMesh();
            hlodGenerate.DeleteExportMatTex();
            hlodGenerate.DeleteExportStreamingAsset();

            TextureAtlasModule.instance.ClearTextureAtlasList(hlodGenerate);
            hlodGenerate.m_IsGenerating = false;
            hlodGenerate.Init();
        }
Exemplo n.º 2
0
        //从流式资源中回退
        public static void ComeBackInMemory(this HLODGenerate hlodGenerate, HLODGenerateEditor editor)
        {
            //还原HLOD
            hlodGenerate.ComeBackHLODAsset(editor);

            //还远原始资源
            hlodGenerate.ComeBackOriginalAsset();

            //删除流式资源
            if (editor.m_DeleteStreamingAsset)
            {
                hlodGenerate.DeleteExportStreamingAsset();
            }
        }