playMaker

Author Topic: Scroll View help[SOLVED]  (Read 2438 times)

TheDreamMaster

  • Playmaker Newbie
  • *
  • Posts: 11
Scroll View help[SOLVED]
« 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?
« Last Edit: August 24, 2013, 07:40:20 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Scroll View help
« Reply #1 on: August 19, 2013, 03:38:15 AM »
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

TheDreamMaster

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Scroll View help
« Reply #2 on: August 23, 2013, 04:45:46 PM »
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.