RectTransform values on the editor change randomly...
I am trying to make a menu where the user can scroll thruogh a list of their save files, but as soon as i set the content i want the user to be able to scroll in the ScrollRect component it changes the RectTransform values of the content, and when i try to rewrite them to the values i want, the RectTransform doesn't use the input i give it but rather changes it to another random value.
I'm using a Image with Buttons as Childs of the Image, as the content for the ScrollRect. The RectTransform's anchor preset of the Image is set to center-top, it's position to (0,-300,0) and it's Width,Height to (294,600). After I set the Image as the content of the ScrollRect the values of the RectTransform position is changed to (0,-214,0). Even if i try to set the "Pos y" back to -300 it just changes it to some random number like -249,6545.
Answer by Pter · Feb 09, 2019 at 02:08 AM
Just adding the 3rd image of the recttransform after setting the content
Your answer
Follow this Question
Related Questions
How To Make Anchor Snap To Own Rect Transform In Editor 4 Answers
How to change the text of EditorGUILayout.TextField 2 Answers
Strange Blue Emission on Speedtrees? 0 Answers
Unity 5.6.1 Editor Freezing every few seconds from new project 1 Answer
How to create Generics Property Type Property Drawer 0 Answers