Exemple #1
0
 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;
     }
 }
Exemple #2
0
	void Reset() {
		textureResourceView = GetComponent<TextureResourceView> ();
	}
Exemple #3
0
 public void Dispose()
 {
     TextureResource.Dispose();
     TextureResourceView.Dispose();
 }
Exemple #4
0
 public override void Dispose()
 {
     TextureResourceView?.Dispose();
     sampleState?.Dispose();
 }
 void Reset()
 {
     textureResourceView = GetComponent <TextureResourceView> ();
 }