internal static Texture GetCachedTexture(IntPtr key, DummyTextureType type) { if (cachedTextures.ContainsKey(key)) { return(cachedTextures[key]); } if (type == DummyTextureType.White) { return(Texture2D.whiteTexture); } else { return(normalTexture); } }
internal static Texture GetCachedTexture(IntPtr key, DummyTextureType type) { var cache = cachedTextures.GetResource(key); if (cache != null) { return(cache); } if (type == DummyTextureType.White) { return(Texture2D.whiteTexture); } else { return(normalTexture); } }