Question by
Minarstilis · Dec 08, 2016 at 04:23 PM ·
uilayout
Vertical Layout Group work fine in Editor Run Mode, But can not work on Device, i need to set localScale to Vector3.one.
I instantiate some panels(the panel is prefab) as son to a parent panel which has Vertical Layout Group Component. The son panels fit the parent panel good at editor run mode. But when i build it to Device, the son panels is very small. Finally , i set the localScale of the son panel to Vector3.one, it work fine. Why?
Comment
parenting UI components has to be done with
transform.SetParent(parentTransform, false);
Your answer
