public static void UnloadTextureResourceViews() { Object[] objects = Resources.FindObjectsOfTypeAll(typeof(TextureResourceView)); foreach (Object o in objects) { TextureResourceView r = o as TextureResourceView; UITexture t = r.gameObject.GetComponent <UITexture> (); t.mainTexture = null; t.material = null; } }
void Reset() { textureResourceView = GetComponent<TextureResourceView> (); }
public void Dispose() { TextureResource.Dispose(); TextureResourceView.Dispose(); }
public override void Dispose() { TextureResourceView?.Dispose(); sampleState?.Dispose(); }
void Reset() { textureResourceView = GetComponent <TextureResourceView> (); }