playMaker

Author Topic: How to set FSM text to TextMeshPro ?  (Read 2526 times)

Stain Corb

  • Junior Playmaker
  • **
  • Posts: 74
How to set FSM text to TextMeshPro ?
« on: October 14, 2022, 02:09:14 PM »
Hi there,
I downloaded Textmesh Pro package from the Ecosystem but when I add the script "Set Textmesh Pro Text" to a TMP Text, its in a red box saying that the game object requires a textmesh pro component


 I read I need "UGUI" action but I cant find it in the Ecosystem or after I imported the TMP from the ecosystem.


I followed this chat but....
https://hutonggames.com/playmakerforum/index.php?topic=24859.msg107574#msg107574

What am I doing wrong?

blackant

  • Hero Member
  • *****
  • Posts: 525
  • http://blackantmaster.com
    • blackantmaster.com
Re: How to set FSM text to TextMeshPro ?
« Reply #1 on: October 14, 2022, 04:38:35 PM »
the easiest way for me is to use Set property>Text>Set text

Stain Corb

  • Junior Playmaker
  • **
  • Posts: 74
Re: How to set FSM text to TextMeshPro ?
« Reply #2 on: October 14, 2022, 08:51:37 PM »
Thanks that works for now, But Set Property is very unstable and not duplicatable, every time I need the script I have to manually look for the property, Long term this is not good.

But for now, I can use it since it's just referential stats.

Does anyone else know a better solution for this?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: How to set FSM text to TextMeshPro ?
« Reply #3 on: October 17, 2022, 06:49:59 AM »
Hi.
you should always try to avoid Get/Set Property actions as they are mirroring and also for some platforms you need to use Linker Wizard to make sure they are included in build.

You can find actions here :
https://hutonggames.com/playmakerforum/index.php?topic=15008.msg69460#msg69460

Stain Corb

  • Junior Playmaker
  • **
  • Posts: 74
Re: How to set FSM text to TextMeshPro ?
« Reply #4 on: November 06, 2022, 02:39:08 PM »
Thanks for the reply, Sadly I will not use git hub to download anything for unity.

I am not a coder, it's the reason I use Playmaker, usually whenever I add codes to unity not using the ecosystem something breaks (80% of the time). So I won't even risk it. Also, I would not even know where to copy stuff from GitHub.

I guess I will pursue this issue in the future.

 :-\

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: How to set FSM text to TextMeshPro ?
« Reply #5 on: November 20, 2022, 07:48:17 AM »
Hi.
Set property is not the way to go

Christoph

  • Beta Group
  • Sr. Member
  • *
  • Posts: 256
Re: How to set FSM text to TextMeshPro ?
« Reply #6 on: May 02, 2023, 10:41:28 AM »
Since TMP is now default text in Unity 2021 Playmaker should add all these actions to the default install.  :)