Hi.
- Programmatically adding prefab items to a vertical layout differs from adding them through the editor
- But only when the canvas scaler is set to “Scale with screen size”
In the first attached image
- The first line of text is added to the editor before startup and is not part of the vertical layout
- The next 3 lines are added programmatically at runtime
- The last line is added in the editor after pausing the game. Its position and text size is what I expected for the other 3 lines.
The second attached image is correct and what it looks like without the canvas scaler.
Anyone know what I could be doing wrong ? Is this a bug ?
I’m using unity 4.6.1
Thanks !

