예제 #1
0
 internal override void Dispose()
 {
     Util.DebugPrint("Textures / Materials / Meshes loaded:", texload, "/", matload, "/", mesload, "referenced:", texhit, "/", mathit, "/", meshit);
     Revert();
     base.Dispose();
     textures.Clear(); materials.Clear(); meshes.Clear();
     instance = null; textures = null; materials = null; meshes = null;
 }
예제 #2
0
        public void Setup()
        {
            Sharing.Create();

            if (reportAssets)
            {
                AssetReport.Create();
            }
        }
예제 #3
0
        internal Sharing()
        {
            instance = this;

            // Be quick, or the JIT Compiler will inline calls to this one. It is a small method, less than 32 IL bytes.
            init(typeof(PackageDeserializer), "DeserializeMeshFilter");
            init(typeof(PackageDeserializer), "DeserializeMaterial");
            init(typeof(PackageDeserializer), "DeserializeMeshRenderer");
            init(typeof(PackageDeserializer), "DeserializeGameObject");
        }
예제 #4
0
        internal Sharing()
        {
            instance = this;

            // Be quick, or the JIT Compiler will inline calls to this one. It is a small method, less than 32 IL bytes.
            init(typeof(PackageDeserializer), "DeserializeMeshFilter");

            if (Settings.settings.shareTextures)
            {
                init(typeof(PackageDeserializer), "DeserializeMaterial");
            }

            if (Settings.settings.shareMaterials)
            {
                init(typeof(PackageDeserializer), "DeserializeMeshRenderer");
            }
        }