Beispiel #1
0
        public static void OnPreRender()
        {
            bool colorSpaceChanged          = CheckForColorSpaceChange();
            bool importedTextureChanged     = CheckForImportedTextures();
            bool importedVectorImageChanged = CheckForImportedVectorImages();

            if (colorSpaceChanged || importedTextureChanged)
            {
                UIRAtlasManager.MarkAllForReset();
                VectorImageManager.MarkAllForReset();
            }
            else if (colorSpaceChanged || importedVectorImageChanged)
            {
                VectorImageManager.MarkAllForReset();
            }
        }
        public static void OnPreRender()
        {
            bool flag  = PackageEditorAtlasMonitor.CheckForColorSpaceChange();
            bool flag2 = PackageEditorAtlasMonitor.CheckForImportedTextures();
            bool flag3 = PackageEditorAtlasMonitor.CheckForImportedVectorImages();
            bool flag4 = flag | flag2;

            if (flag4)
            {
                UIRAtlasManager.MarkAllForReset();
                VectorImageManager.MarkAllForReset();
            }
            else
            {
                bool flag5 = flag | flag3;
                if (flag5)
                {
                    VectorImageManager.MarkAllForReset();
                }
            }
        }