Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Images, material properties and leaking materials

$
0
0
EDIT: I answered my own question... I'm going to ask a mod to delete this post

So, I have sprites I'm tinting in my game using MaterialPropertyBlocks. I want to display a thumbnail of that image in a UGUI Image.

After figuring out that UGUI handles materials totally differently from the rest of Unity, I finally figured out that UGUI expects components to implement IMaterialModifier...

Code (CSharp):
  1.     private Material lastBaseMaterial;
  2.     private Material modifiedMaterial;
  3.     public...
Images, material properties and leaking materials

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>