Skip to content

Placing Text on mesh #94

Answered by jnsmalm
tunahangormus asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! Yes, that's is one way to do it. You can also use a Sprite3D object.

let text = new Text("test")
text.updateText()

let sprite = model.addChild(new Sprite3D(text.texture));
sprite.z = 1.5

If you want the sprite to always be rotated toward camera, you can set sprite.billBoardType. https://api.pixi3d.org/classes/Sprite3D.html#billboardType

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tunahangormus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants