playMaker

Author Topic: TextMesh Pro not working with iTween  (Read 4950 times)

ShazBang

  • Playmaker Newbie
  • *
  • Posts: 33
TextMesh Pro not working with iTween
« 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.

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • Online Playmaker Courses
Re: TextMesh Pro not working with iTween
« Reply #1 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.
- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith

ShazBang

  • Playmaker Newbie
  • *
  • Posts: 33
Re: TextMesh Pro not working with iTween
« Reply #2 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

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • Online Playmaker Courses
Re: TextMesh Pro not working with iTween
« Reply #3 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.
« Last Edit: May 15, 2016, 12:29:08 AM by joduffy »
- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • Online Playmaker Courses
Re: TextMesh Pro not working with iTween
« Reply #4 on: May 15, 2016, 12:31:59 AM »
This is where you can find the events for uGUI for playmaker.
- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: TextMesh Pro not working with iTween
« Reply #5 on: May 15, 2016, 06:57:49 AM »
Hi,
you should use dotween or hotween
Itween is outdated and laggy

ShazBang

  • Playmaker Newbie
  • *
  • Posts: 33
Re: TextMesh Pro not working with iTween
« Reply #6 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.
« Last Edit: May 15, 2016, 07:39:43 AM by ShazBang »

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • Online Playmaker Courses
Re: TextMesh Pro not working with iTween
« Reply #7 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

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

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.
- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith

ShazBang

  • Playmaker Newbie
  • *
  • Posts: 33
Re: TextMesh Pro not working with iTween
« Reply #8 on: May 15, 2016, 08:19:21 AM »
Thanks so much man, massive help!  ;D

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • Online Playmaker Courses
Re: TextMesh Pro not working with iTween
« Reply #9 on: May 15, 2016, 05:48:44 PM »
Anytime dude.

Glad I could help  :)
- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith