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

Text and Image are rendered in the wrong order when instantiated

$
0
0
I have a simple Prefab made by an Image and a child Text; when I instantiate it in a WorldSpace Canvas, the Image appears to be in front of the Text, which I believe it shouldn't happen since the Text is a child of the Image.

If you check the screenshots, you can see the prefab's components and the result; the text's color should be pure white, instead it's gray because the Text is rendered behind the Image which is black with an alpha of 200 (if I max the alpha the Text becomes invisible)....

Text and Image are rendered in the wrong order when instantiated

Viewing all articles
Browse latest Browse all 23263

Trending Articles



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