(3.8.6)Can a cc.Label be attached to a 3D object?

(3.8.6)Can a cc.Label be attached to a 3D object?


ahmfg

August 13, 2025, 2:28am

1

Does a 3D object support attaching a cc.Label on it, like a SpriteRenderer?

ahmfg

August 13, 2025, 3:18am

2

For example, if I want to create a dice (cube) with numbers, when attaching a cc.Label on it directly:the label doesn’t show:
However, when attaching it with a parent Canvas:

The label shows:

but the label needs to set the position as the -width and -height of the canvas:

So, is that the normal way to attach cc.Label to a 3D object? Does it have a more simple way to add it so that the position of cc.Label may be kept at position (0,0), just like a cc.Sprite in 2D canvas?



Source link