Z
Z
Zimaell2020-12-19 12:54:18
Unity
Zimaell, 2020-12-19 12:54:18

How to create text in a prefab?

I make a prefab in the following way - I create an empty object, add box coll2d to it, then add several objects with sprite rendering to it, attach pictures to them, then I need to attach text to this prefab.
How to put it there?
I create a text (it is created in the canvas), I move it to the prefab and it is not visible...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2020-12-19
@Zimaell

"I create a text (it is created in the canvas) I move it to the prefab and it is not visible ..."
It's like layers in Photoshop, try to raise it above the rest.

G
GFX Data, 2020-12-24
@ShockWave2048

For 3D objects, better without canvas.
In the menu:
GameObject - 3D Object -> Text - TextMeshPro

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question