2D Toolkit Forum
2D Toolkit => Support => Topic started by: longbottomup on August 28, 2014, 04:02:05 pm
-
I use 2D Toolkit for my button, i have got a problem. My buttons nearly very, if my finger touch there, two button active at a same time. Now, how can i do to fix it? I want to only one button active at time. Is there any way except to distance them?? I don't want distance them.
-
Are you using tk2dButton (the old legacy unsupported one) or the button from tk2dUI? In tk2dUI, if you turn off multitouch you will only be able to click one button at a time.
-
Thanks for your help. Can you show me where they are? Here my script:
(http://i.imgur.com/RjX1nU4.png)
(http://i.imgur.com/62W6iqv.png)
(http://i.imgur.com/15jIENp.png)
I can't see the area turn off MultiTouch & Button Sprite: Up, Down and Press.
-
It will be on the tk2d Ui manager, or tk2d UI Camera scripts.
-
Thank you, i got it. But i have a last question: i can't see where i put the Sprite for Down, Up or Press button.
(http://i.imgur.com/JKB1U4w.png)
-
You dont. The tk2d UI system is modular, I recommend taking a look at the built in component prefabs and demos to get an idea of how to switch sprites, etc. You create the sprites and the UIUpdownbutton will show and hide the relevant ones.
-
Thank you pro, i guest so. Thank you again.