Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ShazBang on May 14, 2016, 10:20:31 AM

Title: TextMesh Pro not working with iTween
Post 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.
Title: Re: TextMesh Pro not working with iTween
Post by: joduffy on May 14, 2016, 07:53:31 PM
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.
Title: Re: TextMesh Pro not working with iTween
Post by: ShazBang on May 14, 2016, 10:49:19 PM
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
Title: Re: TextMesh Pro not working with iTween
Post by: joduffy on May 15, 2016, 12:24:41 AM
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.
Title: Re: TextMesh Pro not working with iTween
Post by: joduffy on May 15, 2016, 12:31:59 AM
This is where you can find the events for uGUI for playmaker.
Title: Re: TextMesh Pro not working with iTween
Post by: djaydino on May 15, 2016, 06:57:49 AM
Hi,
you should use dotween or hotween
Itween is outdated and laggy
Title: Re: TextMesh Pro not working with iTween
Post by: ShazBang on May 15, 2016, 07:38:12 AM
How would I go about importing these into my current project?

I don't have Ugui or anything installed.
Title: Re: TextMesh Pro not working with iTween
Post by: joduffy on May 15, 2016, 07:49:53 AM
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.
Title: Re: TextMesh Pro not working with iTween
Post by: ShazBang on May 15, 2016, 08:19:21 AM
Thanks so much man, massive help!  ;D
Title: Re: TextMesh Pro not working with iTween
Post by: joduffy on May 15, 2016, 05:48:44 PM
Anytime dude.

Glad I could help  :)