Пример #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;
     }
 }
Пример #2
0
	void Reset() {
		textureResourceView = GetComponent<TextureResourceView> ();
	}
Пример #3
0
 public void Dispose()
 {
     TextureResource.Dispose();
     TextureResourceView.Dispose();
 }
Пример #4
0
 public override void Dispose()
 {
     TextureResourceView?.Dispose();
     sampleState?.Dispose();
 }
Пример #5
0
 void Reset()
 {
     textureResourceView = GetComponent <TextureResourceView> ();
 }