Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

GuiTexture width after widthchange

$
0
0
I have a GuiTexture and the original size of the texture is 500x500; After some calculations i change rescale the GuiTexture using pixelInset; myGuiTexture.pixelInset = new Rect( 0, 0, 100, 100); Everything works like a charm. Now i need to read the current texture width, sadly using myGuiTexture.pixelInset.width return 500 the original texture size instead of the current one at the screen. Any advice on how to get the current width of the texture?

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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