Exemplo n.º 1
0
        DynamicAtlasPage CreateNewPage()
        {
            var page = DynamicAtlasPage.OnCreate(m_PageList.Count, m_Width, m_Height, m_TempColor);

            m_PageList.Add(page);
            return(page);
        }
Exemplo n.º 2
0
        static async ETTask PreLoad()
        {
            for (int i = 0; i < 2; i++)//看情况提前预加载,加载会卡顿
            {
                await TimerComponent.Instance.WaitAsync(1);

                var temp = DynamicAtlasPage.OnCreate(i, DynamicAtlasGroup.Size_2048, DynamicAtlasGroup.Size_2048, null);
                temp.Dispose();
            }
        }