Playmaker Forum

PlayMaker Updates & Downloads => Pre-release Discussion => Topic started by: carlosrovira on March 10, 2021, 05:00:53 PM

Title: playmaker + TextMeshPro (edited title, was probuilder).
Post by: carlosrovira on March 10, 2021, 05:00:53 PM
Hi I'm using

- Unity 2020.2.7f1
- Playmaker 1.9.1.p4
- Probuilder 4.5.0

I see playmaker has some incompatibilities and for example moving objects in unity stop work.

then I get the following problems:

Assets/PlayMaker/Actions/UI/Components/PlayMakerUiEndEditEvent.cs(4,7): error CS0246: The type or namespace name 'TMPro' could not be found (are you missing a using directive or an assembly reference?)

Assets/PlayMaker/Actions/UI/Components/PlayMakerUiIntValueChangedEvent.cs(4,7): error CS0246: The type or namespace name 'TMPro' could not be found (are you missing a using directive or an assembly reference?)

Assets/PlayMaker/Actions/UI/Components/PlayMakerUiEndEditEvent.cs(18,16): error CS0246: The type or namespace name 'TMP_InputField' could not be found (are you missing a using directive or an assembly reference?)

Assets/PlayMaker/Actions/UI/Components/PlayMakerUiIntValueChangedEvent.cs(18,16): error CS0246: The type or namespace name 'TMP_Dropdown' could not be found (are you missing a using directive or an assembly reference?)

What versions are safe to use, or where I can read about it?

thanks
Title: Re: plamaker + probuilder
Post by: djaydino on March 11, 2021, 07:56:59 AM
Hi.
The errors are referring to 'TMPro'

TMPro is from Text Mesh Pro.

Have you installed TextMesh Pro?
Title: Re: plamaker + probuilder
Post by: carlosrovira on March 11, 2021, 12:35:01 PM
Hi, ok Thanks. I removed TMPro before. What I don't understand is why playmaker is complain about it, for that reason I was confused. Thanks!
Title: Re: plamaker + probuilder
Post by: Alex Chouls on March 11, 2021, 10:06:50 PM
Yeah, PlayMaker detects if TextMeshPro is installed to enable support for TMPro controls. If it finds TMPro it adds a define symbol: PLAYMAKER_TMPRO

However we don't have a good way to detect if TextMeshPro has been uninstalled.
For now you can manually delete PLAYMAKER_TMPRO from the platform custom #defines:
https://docs.unity3d.com/2019.4/Documentation/Manual/PlatformDependentCompilation.html

I'm editing the title of this thread to Playmaker + TextMeshPro for other people searching for this.