PlayMaker Help & Tips > Android Help

Touch scroll

(1/3) > >>

Damian:
I kind of doing a new app and only want to use playmaker.
The problem I do have right now is that I have a FSM that use GUILayout scroll view.
In the view I have some text, but it is to much to fit the screen, but thats okey.
Right now I can scroll the text if I press the scrollbar and move it. It is also okey.
But if I touch the screen I can not scroll the text.
It would be nice to know how I can make that work.

So how do I do this??

jeanfabre:
Hi,

 For complex UI, I would recommand that you use ngui or ezgui,

In your case, I am not sure if it's a limitation of unity gui that only accepts one touch at a time or something else.  A quick way to verify this is to have two buttons with two different actions. if you touch and hold one, what happens if you touch the second button?

bye,

 Jean

Damian:

--- Quote from: jeanfabre on August 29, 2012, 02:42:08 AM ---Hi,

 For complex UI, I would recommand that you use ngui or ezgui,

In your case, I am not sure if it's a limitation of unity gui that only accepts one touch at a time or something else.  A quick way to verify this is to have two buttons with two different actions. if you touch and hold one, what happens if you touch the second button?

bye,

 Jean

--- End quote ---

I am not sure you did understand what I did mean.
What I was meaning was I want to be able to scroll the "scrollbox" with normal touch and not be forced to use the scrollbar only.
It did work okey on older phone, but with the S3 its kind of hard and not always working.
So I wanted to use normal touch and swipe the screen to scroll the "scrollbox".
Maybe its not that hard. its vector 2 and I guess I only need to read the screen and modified that.
 

jeanfabre:
Hi,

 So you want to control the scrolling programmatically right?

bye,

 Jean

Damian:

--- Quote from: jeanfabre on September 03, 2012, 04:47:50 AM ---Hi,

 So you want to control the scrolling programmatically right?

bye,

 Jean

--- End quote ---

Yes.
I want to be able to use the whole screen( scrollbox GUI) to scroll, not just the scrollbar.
Like it is now I can not see how I shall do it with playmaker.
As I can see playmaker do not have anything for vector2, beside the controller that use it.
So you can use a controller that use vector2 (GUI), but you can not change anything.

So the thing I want to do is swipe the screen up/down and send that to the scrollbox so it do scroll the scrollbox, instead of using the scrollbar on the side. it is more normal on a smartphone that you use it like the way I want to do.

Navigation

[0] Message Index

[#] Next page

Go to full version