- Home /
[CLOSED] Pixel Inset ---> transform scale convert
Hi! I've got some GUITextures and their size is changing when I run game in full screen. I read something about this problem and I know that I must clean Pixel Inset values and use transform scale instead it. Is it possible to convert pixel inset to scale? There're properties which I must convert:
Pixel Inset.w = 73, Pixel Inset.h = 421 --> transform.scale(?) Pixel Inset.w = 350, Pixel Inset.h = 276 --> transform.scale(?) Pixel Inset.w = 28, Pixel Inset.h = 36 --> transform.scale(?)
I wait for your answers :)
I'm not sure of your question. If you leave transform.localScale alone, you can scale your GUITexture by scaling the width and height of the pixel inset. the x and y of the pixel inset deter$$anonymous$$e where the texture is anchored. Typically you want them to be negative 1/2 of the width and height so the anchor is in the middle of the texture.
Your answer
Follow this Question
Related Questions
Reduce Draw call for Multiple GUI Textures with same Texture 1 Answer
Bulletproof way to do resolution independant GUI scaling? 2 Answers
Scaling a 2D Texture (Image) 0 Answers
GUI 2D Bounding Box 1 Answer
Move GUI elements. 0 Answers