public static void AddReferenceCountOfRawImage(RawImage rawImage) { if (rawImage != null && rawImage.get_texture() != null) { AssetManager.AddAssetRef(FileSystem.GetPath(rawImage.get_texture().get_name(), string.Empty)); } }
public static void AddReferenceCountOfRawImage(Texture texture) { if (texture != null) { AssetManager.AddAssetRef(FileSystem.GetPath(texture.get_name(), string.Empty)); } }
private void Awake() { this.IsAwake = true; if (!string.IsNullOrEmpty(this.m_resName)) { AssetManager.AddAssetRef(this.m_resName); } }
private static void AddToUiSprites(string src, Dictionary <string, SpriteRenderer> sprites) { if (sprites == null) { return; } src = src.ToLower(); if (!AssetManager.AssetOfTPManager.m_atlas_uisprites.ContainsKey(src)) { AssetManager.AssetOfTPManager.m_atlas_uisprites.set_Item(src, sprites); AssetManager.AssetOfTPManager.InitReference(ConstTP.src_To_suffix_atlas(src)); AssetManager.AddAssetRef(ConstTP.src_To_suffix_prefab(src)); } }