I have a scrollRect set up with some text as content. It’s working fine when I just play the scene. The Viewport looks like this in the inspector.
The problem is when I load this scene from another scene, the viewport behaves weirdly. Here is what it looks like in the Inspector when loaded from other scene:
As you can see the Rect Transform component values change (the anchoring preset and the delta size). I’m assuming the reason the content disappears is because of this, but I’m not sure.
If I change some of the viewport rect transform values (position for instance) when the game is paused it resets back to normal when I resume. It doesn’t work if I do the same in the script, though.
Unity version: 5.4.1f1 Personal
Any help is appreciated, it’s driving me crazy. Thanks in advance and sorry for any english mistakes.