I need to have a sentence surrounding the player, how should I approach this?
Let me tell you what I’ve tried already:
Text mesh pro - no results
Curvy - no results (good for 2d circle only)
several curved ui scripts - no results (good for 2d only)
Curved UI - no results (good for 180 degrees only)
for each of these something didn’t work well
After reading the relevant scripts its seems to be related to UIVertex, but it’s too much for me to tweek this type of code. I need more c# knowledge
EDIT: Like in this picture (the use is in the middle of the circle)
If after so much different approaches you still have no results, there must be some specific requirements you did nor mention in your question. "Surrounding the player" can mean many things. Can you provide more details...
There could be something wrong with your Player32x32_0 asset. It should be imported as a Sprite. Tutorial: https://www.youtube.com/watch?v=VfAYSWpf7gg Also be sure that your gameobject isn't facing the wrong way. Sprites are only visible from one side.
thanks @dan_wipf I did well up until 4, and then I lost you.... I have two text mesh pro prefabs called: TextMeshPro-Prefab 1, TextMeshPro-Prefab 2 None of them as seems doen's have property field. What am I missing? WELL OF COURSE the script you've attached! Trying this now! update: I created the empty gameobject with a child text - TMP I created another gameobject and called it TextAroundPlayer, but when attaching the script got this pop-up: [124296-what-i-got-when-adding-the-script.png|124296] When tried to attach the script to other objects, same error
thanks @dan_wipf I did well up until 4, and then I lost you…
I have two text mesh pro prefabs called: TextMeshPro-Prefab 1, TextMeshPro-Prefab 2
None of them as seems doen’s have property field.
What am I missing? WELL OF COURSE the script you’ve attached!
Trying this now!
update:
I created the empty gameobject with a child text - TMP
I created another gameobject and called it TextAroundPlayer, but when attaching the script got this pop-up:
When tried to attach the script to other objects, same error
The solutions here didn’t work for me, so I used Blender instead. While curving text is possible directly in the game engine, it’s much easier to accomplish using Blender, even for someone who’s never used it before.
To create 3D curved text in Blender 4.0:
Add a bezier circle mesh (Shift A>Curves>Circle)
Add a text mesh (Shift A>Text)
Select the text mesh and go to the modifiers tab on the right hand panel
On the modifiers tab add a curve modifier (Add Modifier>Search>Curve)
Click the box next to the “Curve Object” property, and select your circular curve object from the dropdown (probably called Bezier Circle or something similar)
Rotate the text 90 degrees over the x-axis (R>X>Type 90>Enter)
If after so much different approaches you still have no results, there must be some specific requirements you did nor mention in your question. "Surrounding the player" can mean many things. Can you provide more details...
– misherThere could be something wrong with your Player32x32_0 asset. It should be imported as a Sprite. Tutorial: https://www.youtube.com/watch?v=VfAYSWpf7gg Also be sure that your gameobject isn't facing the wrong way. Sprites are only visible from one side.
– Masterben135