Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: tcmeric on April 24, 2017, 03:50:16 AM

Title: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on April 24, 2017, 03:50:16 AM
The Textmesh Pro playmaker action set has now been released for free under a MIT/LGPL license (free to use in your game, no need to add into credits) by myself (Dumb Game Dev).

https://github.com/dumbgamedev/TextMeshPro_Playmaker

As well, I have made a basic intro video for these actions. I highly suggest you check out Textmesh Pro, which is now free on the asset store. This is really a big step-up for text in Unity. It is all free, and if you are not already using it in your project, you should now!!!


One last thing to note, is that this project was funded through my Patreon account. If you do use this asset, or would like to see more free playmaker actions, please consider contributing a few dollars a month. https://www.patreon.com/playmaker

The next releases in the pipeline for my Patreon account are actions for Post Processing Stack (free on the asset store), Beautify (another great post processing asset that I use myself often) and Liquid Volume (by the same authors as Beautify).

To Note: There are still a few issues with the actions for mobile shaders. If you run into any bugs, please report them so I can make corrections. (Shaders are tricky and this asset comes with a whole bunch).
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on April 27, 2017, 07:58:49 AM
So, I found that they are not working with the textmesh pro ugui (just the textmesh pro standard text). I am working on a fix that should address that soon. Hopefully this week.
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: beowulfkaine on April 27, 2017, 11:37:49 AM
Please add a $20 contribution option to your patreon page.
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on April 27, 2017, 12:06:47 PM
Thank could be managed  8)

https://www.patreon.com/playmaker
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: Zeb on April 28, 2017, 07:13:26 PM
Thank you for these actions!

I did run into the issue that uGUI TMP is not supported though. I look forward to your update!

These actions will save me a lot of time and allow for cleaner FSMs as I'm currently in the process of converting all my old text into uGUI TMP.

edit: I'm not sure what will be involved when you add uGUI TMP support but one feature that would be very helpful is to be able to set Color Gradient Presets.

Zeb
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on April 28, 2017, 09:12:46 PM
They should all be done within the next few days regarding uGui. I can bump this thread here when its finished if you would like, or you can send me your email (mine is tcmeric@gmail.com), and I can email you when its ready.

Thanks for your support Zeb! Ill look at the color gradients preset. I forget off the top of my head if its there. I think it is a shader effect (for TMP). But I will add support for 95% of whatever uGui can support.
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on April 29, 2017, 08:16:33 AM
Hi Zeb & everyone. I have update the set today to include ugui actions as well.

You can download the github version and just replace your current version. I didnt change any of the old actions, so they will work and not break whatever work you have completed.

https://github.com/dumbgamedev/TextMeshPro_Playmaker

Zeb, I am working on gradients. I will see what I can do, as gradients are not necessarily supported in playmaker, but I will come up with a work around (I have been practicing with line renderers, so hopefully I can get it working).
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: Zeb on April 29, 2017, 01:26:37 PM
That's wonderful. Thank you! I'll test out what you have today and let you know if I run into any issues.

Manually setting color gradients in PM would be a great addition but if all I had was the ability to swap a TPM_Color Gradient Preset then I could get away with a lot. It may be a much easier action to build.

(http://Color_Gradient_Preset.JPG)
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: firesidegames on May 04, 2017, 08:53:07 AM
Thanks for the new ugui action set! Working great on my end :D
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on May 04, 2017, 09:10:33 AM
Awesome! Thanks for checking in and letting me know. Its nice to know that people are using the actions. Always gives me some energy to make more.
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on May 17, 2017, 10:05:33 AM
The actions have been updated to include

1. set gradient colors (for ugui and non-ugui text)
2. set gradient preset (for ugui and non)
3. enable/disable gradients (for ugui and non)
4. get text (for ugui and non)
5. set text without any required fields, so you can pass null (for ugui and non).

It has been added to the master branch: https://github.com/dumbgamedev/TextMeshPro_Playmaker
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: m_stolley on May 22, 2017, 09:32:05 AM
Hi,

I get these 3 Errors:

Assets/TextMeshPro_Playmaker-master/uguiActions/Basic/enableTextmeshProUGUITextColorGradient.cs(13,16): error CS0101: The namespace `HutongGames.PlayMaker.Actions' already contains a definition for `enableTextmeshProUGUITextColorGradient'

Assets/TextMeshPro_Playmaker-master/uguiActions/Basic/setTextmeshProUGUIGradientPreset.cs(14,16): error CS0101: The namespace `HutongGames.PlayMaker.Actions' already contains a definition for `setTextmeshProUGUIGradientPreset'

Assets/TextMeshPro_Playmaker-master/uguiActions/Basic/setTextmeshProUGUITextColorGradient.cs(13,16): error CS0101: The namespace `HutongGames.PlayMaker.Actions' already contains a definition for `setTextmeshProUGUITextColorGradient'

Can you please help?

edit 1:
Use the source code edition by the way.

wdit 2:
Ok, deleted the duplicates from the basic actions folder, not the ugui basic action folder. Is that right?
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on May 22, 2017, 09:51:07 AM
Absolutely. Sorry that was my bad. Delete the entire folder with the actions in it. Download a new fresh set. I have made the necessary corrections. (But you need to delete the old ones first from your assets folder).

https://github.com/dumbgamedev/TextMeshPro_Playmaker

edit: please use the master/source code edition, it is always up to date and should be the most stable.
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on May 23, 2017, 11:08:05 PM
Warning for unity 5.6 users.

The newest version of textmesh pro makes a few big changes, which breaks the textmesh pro playmaker actions. They did NOT use conditionals, and instead released a new version only for 5.6. You can see the list of changes here: http://digitalnativestudios.com/forum/index.php?topic=1363.msg10122#msg10122

Currently my actions do not support this new version (only available for 5.6) if you are updated to textmesh pro version 1.0.55 and above.

I will likely add support, but maybe not for a few weeks or more.

Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: PlaymakerNOOB on May 26, 2017, 09:47:30 PM
Thanks TCMeric!
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: craigz on September 20, 2017, 02:05:36 PM
Wanted to jump in here real quick and see if there'd been an update for the actions to work with the free version of TMP?

Getting this error continually -
(https://i.imgur.com/zKBh2Iv.png)

And then this read out at the bottom ;)
(https://i.imgur.com/jSQQPqX.png)

As ever, thank you for all the wonderful work! :D

-craigz
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: MattyWS on March 04, 2018, 07:38:58 PM
Hi, sorry to rez this topic but it seems to be the last known actions for TextMesh Pro+Playmaker actions.

I imported the actions into my project and all of my UI (it was all under one prefab), thats buttons, images, texts.. all were moved around, set to different locations and incorrect positions and I couldnt move them anymore. Once I removed these actions I could move them again but the locations were still all wrong and I had to manually move everything back to where it all was (lesson learned, back up projects before importing new things).

So I want to ask, is this the definite latest of the actions and can it be used with the latest version of Unity and the free version of TextMesh Pro? If not, is there a more standard set of actions for this?

All I really want to do is update a text with an action. xD

Thanks,
MattyWS
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on March 04, 2018, 11:07:37 PM
Hi MattyWS,

This is about official as it is going to get for TMP actions I think. They are pretty comprehensive  8)

The issue you described is very strange. They shouldn't affect the UI in anyway without being run of course. Did you get any errors in the consol after bringing in the actions?

They work with up to Unity 2017.3, the latest free version of textmesh pro from the asset store. (They have not yet been officially tested on  Unity 2018.1 beta).

What version of Unity are you using? What happens if you just import 1 or 2 of the actions into your project?
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on March 04, 2018, 11:10:19 PM
Hi Craig,

Sorry for the super slow reply!! I didnt see your post before. You may have already figured this out.

Textmesh pro has two different components. 1 is for uGui only, 1 is for regular text in 3d space only. Therefore the TMP actions have 2 major sets of actions. The "regular" ones and the uGui ones. It appears you are using the "regular" action to try and set text on a "uGui" component. You need to choose the correct action for uGui.

I hope that helps!
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on March 05, 2018, 02:25:02 AM
PS, is your prefab issue related to the TMP prefab issue.

https://forum.unity.com/threads/applying-prefab-with-inactive-children-and-tmp-element-breaks-layout.508589/
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: MattyWS on March 05, 2018, 06:27:47 PM
That does seem to be the issue actually... I have Unity 2017 version 3.1f1. I hope it's resolved soon but until then I guess I will just hold off on using Textmesh Pro. :(

Thanks for the info!
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: Plancksize on July 18, 2018, 02:16:55 PM
With Textmesh Pro being part of unity as default now, this is even more precious. Thanks a lot.

Kind feel this could be part of the Ecosystem now. ;)
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on July 18, 2018, 09:51:51 PM
Hi, thanks.

Yes if djaydino or Jean would like to put it on the ecosystem, that would be good. Since there are many actions, maybe as a package.

So far it has been very stable and working correctly. Works for the 2018 version, 2017 free version and unity 5 free version. Never tested on the unity 5 paid version.
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: djaydino on July 19, 2018, 06:18:25 AM
Hi.
Yes that can be done :)

Could you add these 2 lines to each action :
Code: [Select]
/*--- __ECO__ __PLAYMAKER__ __ACTION__ ---*/
// Url : http://hutonggames.com/playmakerforum/index.php?topic=15008.0

I saw some uGui actions there.
Is the uGUi package required for the uGui action.
If so, is it possible to convert (or make new ones) for the build-in UI ?
If not, can they be renamed to UI instead of uGui for better clarity (only for the Ecosystem package, it's probably better to keep yours on github)
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: Plancksize on July 24, 2018, 09:01:42 AM
Hi.
Yes that can be done :)

Could you add these 2 lines to each action :
Code: [Select]
/*--- __ECO__ __PLAYMAKER__ __ACTION__ ---*/
// Url : http://hutonggames.com/playmakerforum/index.php?topic=15008.0

I saw some uGui actions there.
Is the uGUi package required for the uGui action.
If so, is it possible to convert (or make new ones) for the build-in UI ?
If not, can they be renamed to UI instead of uGui for better clarity (only for the Ecosystem package, it's probably better to keep yours on github)

I think the reason they are name uGui is because of the old legacy UI action still present that are called just UI.
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on July 24, 2018, 10:21:02 AM
Hiya, slow reply.

Yes, there are basically 2 sets of actions for textmesh pro. Ones for textmesh pro that is on the canvas (ugui) and the ones for textmesh pro as game objects. They are not the same component type and therefore needed their own actions.

Within each folder, they are then organized into basic (most common used), advanced (less common used) and shaders (for shader control).

There was a plan to maybe sell the advanced/shader ones, at one point. But I am far too lazy to organize that.  ;D

Since Unity 5, all built in UI is ugui now, no? (Except those used for editor windows, etc).
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: djaydino on July 25, 2018, 07:44:25 AM
Hi tcmeric.

Actually it is just UI
https://unity3d.com/learn/tutorials/s/user-interface-ui

But i was referring to the uGui package on the Ecosystem.
if it does not require that package i think it is better to change the name to UI for better clarity :)
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: PolyMad on October 06, 2018, 06:13:12 PM
Why I can't find these on the Ecosystem?
I searched for textmesh, text mesh, text pro, no way... I only find a "set text mech" which I don't even dare to download...
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: djaydino on October 07, 2018, 08:19:25 AM
Hi.
For now you can get them on github (link on the 1st page)

you can drop them anywhere in your project.

I asked tcmeric if he could update the actions to make them compatible for the ecosystem, but i did not get a reply yet.
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: PolyMad on October 07, 2018, 10:59:57 AM
I see... ok I downloaded, going to see if they work correctly.
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: Gua on March 04, 2019, 09:37:43 AM
It doesn't work in Unity 2018.3 I get this error when I use Set Textmesh Pro Text action

NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.setTextmeshProText.DoMeshChange () (at Assets/!scripts/Playmaker Extras/TextMeshPro_Playmaker-master/actions/Basic/setTextmeshProText.cs:69)
HutongGames.PlayMaker.Actions.setTextmeshProText.OnEnter () (at Assets/!scripts/Playmaker Extras/TextMeshPro_Playmaker-master/actions/Basic/setTextmeshProText.cs:47)
HutongGames.PlayMaker.FsmState.ActivateActions (System.Int32 startIndex) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:205)
HutongGames.PlayMaker.FsmState.OnEnter () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:175)
HutongGames.PlayMaker.Fsm.EnterState (HutongGames.PlayMaker.FsmState state) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2768)
HutongGames.PlayMaker.Fsm.SwitchState (HutongGames.PlayMaker.FsmState toState) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2715)
HutongGames.PlayMaker.Fsm.UpdateStateChanges () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2643)
HutongGames.PlayMaker.Fsm.Start () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:1926)
PlayMakerFSM.Start () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:548)
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on March 05, 2019, 08:41:24 AM
It doesn't work in Unity 2018.3 I get this error when I use Set Textmesh Pro Text action

NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.setTextmeshProText.DoMeshChange () (at Assets/!scripts/Playmaker Extras/TextMeshPro_Playmaker-master/actions/Basic/setTextmeshProText.cs:69)

This error says you have a null reference exception. You are trying to set text on a non textmesh pro gameobject. Also note that textmesh and textmeshugui are not the same things. The former is a 3d object, while the latter is a uGui component. Its important to choose the correct action for the correct type of textmesh you want to change.
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: djaydino on March 07, 2019, 10:31:06 AM
Hi.
Would it be possible to add these to the Ecosystem?
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: Plancksize on May 24, 2019, 12:12:59 PM
Hi there. Thanks for the actions.
If it's not too much, i'd love to request a couple more to add to this ones. :)

I'd love to get a pageCount and a pageToDisplay action.

For some reason using Get/Set Property on a TMPro element makes my playmaker/unity lag and freeze.
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on May 27, 2019, 02:58:19 AM
Hi Plancksize. Ill have a look into it. Any updates, i will post here to let you know.
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: craigz on November 21, 2019, 02:31:19 PM
Hi Eric!

I hope you're doing well :) I just wanted to flag a strange issue that happened recently with these. Usually I just download the .zip from github and extract to my projects (which are usually using collaborate). But recently we migrated a project from Collaborate to GitHub and when we did, all these actions were kicking out errors of "unexpected characters" with many of them suddenly be in a different language 😳 all I had to do was remove the folder and re-extract a fresh version to it. But I wanted to let you know incase you had any ideas of why this would be the case 🤷‍♂️

Thanks for all the amazing actions, I can't tell you how helpful they've been :)

best,
craigz
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on November 21, 2019, 08:34:35 PM
Hi,

It is unlikely to be the code itself, but rather after using collaborate. Otherwise, they are pretty standard unity scripts /playmaker actions. If something else comes up with them again, please let me know, thanks!
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: craigz on November 27, 2019, 12:51:18 AM
Hmm... yeah its really odd :/ I can't imagine anything thats happening with collaborate though, as even it's backend export relies on git... but who knows!

Here's some reference images if its helpful 🤷‍♂️

(https://i.imgur.com/j2aQPQM.jpg)

(https://i.imgur.com/TIenZnv.jpg)
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: djaydino on November 27, 2019, 05:07:37 AM
Hi.
I used Collaborate a year ago on a client and we had lost os issues using that.

One of the was for example Ghost States : duplicated states in an fsm and hard to see as they are right behind the original.

I don't think this might be the case, but its good to be aware of this.
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: tcmeric on November 27, 2019, 06:24:08 AM
Hmm, looks like they got corrupted somehow. Thank you for sharing. The good news, is we are very close to having them on the ecosystem, including some minor updates/fixes!
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: craigz on December 01, 2019, 04:07:23 PM
Woohoo to having them on ecosystem! :D

Hopefully in a combined package instead of separately yes? 🙏 ;)

Sounds good, thanks Eric and good notes djaydino, always some weird stuff with that. The ghost states sounds horrible though... 😵
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: craigz on April 28, 2020, 12:06:49 PM
Friendly bump on the TMP actions on ecosystem :D (and hopefully to not have this strange issue again, happened today when downloading a github project) ><
Title: Re: Textmesh Pro Playmaker Actions (free)
Post by: dominiklussier on October 16, 2021, 10:35:03 PM
Has anyone figured out the Chinese text issue? It happens through perforce as well