Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: TheDreamMaster on August 15, 2013, 09:59:52 PM
-
I am trying to set up a GUILayout Box inside a Scroll View. It works fine but it covers the entire screen. I tried putting the Scroll View (which contains the Box) inside a GUILayout Area, so that I could control the size of it. It looks good but the scroll ceases to function, if I scroll down it will jump back to the start as I let go.
IS there another way to control the size of the scroll view?
-
Hi,
is it not because you don't store the scroll position? in order for the scroll to stay in playce you need to save the scroll position value in a fsm variable.
bye,
Jean
-
Thank you for the reply Jean. But it turns out it was a display oddity (PM or Unity). When in PM debug mode, if I had the active FSM displayed on the graph view (you know with the green highlight on the active state and the transition arrow) and I tried to scroll the ScrollView it would snap back to the beginning.
But if I first click on another object to go to a different GraphView or I played in the Maximized Game Window, then there is no problem and I can scroll perfectly.
Needles to say it works fine all the time in the native android apk.