Question by
dabaciorbicaba · Apr 03 at 10:33 AM ·
scripting problemimageguitexturerecttransform
How can I replace this code?
guiTexChild.pixelInset = SetResolution(guiTexChild.pixelInset);
This is the line of code I want to replace. I tried to do something like this
guiTexChild.rectTransform.position = new Vector3(SetResolution(guiTexChild.rectTransform.rect).x,SetResolution(guiTexChild.rectTransform.rect).y);
But I don't think this does the same thing . Does anyone know to solve this?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613054932im_/https://answers.unity.com/themes/thub/images/avi.jpg)