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; }
public void Setup() { Sharing.Create(); if (reportAssets) { AssetReport.Create(); } }
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"); }
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"); } }