Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: ShazBang on May 14, 2016, 10:20:31 AM
-
Using TextMeshPro on my main menu and just wanted to add some animations using iTween, so if the text was clicked it would move out of the way.
However, I'm getting an error saying the text needs a GUI element or a collider but adding those on doesn't seem to help... is there another way to do this?
Cheers.
-
Hi ShazBang,
Thats actually a really good question. I will take a closer look into it but a quick fix is to put a button script on it and it will work. You won't need to adjust any setting, unless you want to.
Let me know how you go with it.
-
Hmm, tried that but it's still giving me the needs collider/gui error.
Clicking it works, it changes colour on click but the mouse down transition won't work. :'(
Thanks for the reply though man! ;D
-
Anytime Dude. Here to help.
Are you using the uGUI proxy stuff for playmaker? So there is an addon you need to get?
The events should be uGUI/OnClick
I don't think you can use the mouse down events. You have to use the uGUI custom events for it to work.
I highlighted the stuff in red you need.
-
This is where you can find the events for uGUI for playmaker.
-
Hi,
you should use dotween or hotween
Itween is outdated and laggy
-
How would I go about importing these into my current project?
I don't have Ugui or anything installed.
-
djaydino is right about picking another tweening package. Especially for ios games as itween has a system that uses hashtables that causes lag. I have only used leantween and not the others ones. But, getting back on track.
You can get playmaker action browser here, which is called ecosystem:
https://hutonggames.fogbugz.com/?W1181 (https://hutonggames.fogbugz.com/?W1181)
Its pretty cool as you can search for actions to expand playmaker functionality. You can also directly get the ugui stuff here:
https://hutonggames.fogbugz.com/?W1192 (https://hutonggames.fogbugz.com/?W1192)
I would recommend using the ecosystem though to get the ugui actions as having the ecosystem setup opens up options for you - in terms of actions you can access and download.
UGUI is unity built in system so all you need is the package.
-
Thanks so much man, massive help! ;D
-
Anytime dude.
Glad I could help :)