Text on mesh surface
Asked Answered
R

2

0

I want to add text to the surface of a mesh. Is there a simple way to do that through GDScript?

Ridotto answered 16/7, 2022 at 10:36 Comment(0)
W
0

A simple solution is to use viewport.
1.Make the text by use label
2.Add a viewport to show the label.(Be the parent of it, dont be forget set the viewport size and enable vflip)
3.Add the material for mesh and enable"local to scene". Set albedo texture to the viewport texture.
4.Done!

Widthwise answered 25/7, 2022 at 21:3 Comment(0)
W
0

Widthwise
If your text is not dynamic, you can use a simple texture to do that.

Widthwise answered 25/7, 2022 at 21:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.