Quantcast
Channel: Latest Questions by karl_
Viewing all articles
Browse latest Browse all 90

Texture2D.format and TextureFormat.ARGB32 aren't comparable?

$
0
0
I'm trying to make sure that an image loaded into a game is of the ARGB32 format, but I can't seem to get Unity to compare the two. Code: if(image.format == TextureFormat.ARGB32) { // Stuff } This gives me an error saying that image.format is an object, and not TextureFormat. The docs say otherwise. What's the deal here?

Viewing all articles
Browse latest Browse all 90

Trending Articles



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