Unity RectTransform y value changing to height after exiting play mode?
Hey all,
Been working on the UI and I've come across what appears to be a bit of a bug (could well be my own incompetence but ah well) where the Pos Y of a content area is setting itself to the height of the Rect Transform after I exit play mode.
So far as my best guess is it's perhaps due to the anchoring? I'm not adjusting the height or anything in code anywhere. OR perhaps due to a vertical layout group and/or scroll area? (Current problem is with a dropdown however encountered it in the past when positioning panels within a scroll area and controlling them with a vertical layout group - previous fix has been to manually set the position every time the scene starts). Would be nice to get to the bottom of this, thanks :)
The Inspector before/after running the game: