#TMP (TextMeshPro) and ECS incompatibility

1 messages · Page 1 of 1 (latest)

supple phoenix
#

Hey fellas! Hope you're all doing good. I was trying to create a gameobject with a TextMeshPro component (the worldspace version, not the UI TMP) and there seems to be an incompatibility between TMP and ECS.

When i make the object in a regular scene, everything works just fine. However, if i just move the object to a subscene, a shader-related error appears. (see images attached)

I need this text as part of the object itself since i will be spawning multiple of them and their text values will vary per instance. Is this something possible? Or am i going to need a cursed workaround?

Thank you very much!

neon meteor
#

TMPro is not supported by Unity themselves (at the moment). You have to use 3rd-party implementation.

#

Is this something possible? Or am i going to need a cursed workaround?
Do not be surprised that you're missing a bunch of features from the old GameObject world. The current state of Unity ECS is somewhat limited. You'll always have to find workarounds or 3rd-party library to fill the missing pieces.

#

It will stay that way until Unity is done with their plan of "ECS For All". But we don't have an ETA right now.

supple phoenix
#

i am starting to notice that, oh boy

#

have you tried this TextMeshDOTS package? is this something commonly used?

#

because the workaround i was thinking about is just having the entire object on the ecs side, and then a monobehaviour of the text on the Gameobject world that kind of "follows" the position of the ecs entity correctly. Cant really picture it right now but i believe it could be possible to do something like that

#

i dont really know the best approach through

neon meteor