Incorrect label position

Whoa, a bit of deja vu on this project, haha, welcome back.

The issue is on the label in your “entry.go” you have its material set to: “/builtins/fonts/font-df.material”, and if you open up that material and scroll down to look at its tags, it’s under “gui”. So it will be rendered in screen space instead of world space. (But won’t be scaled like a GUI because it’s a label component). The material it should have is: “/builtins/fonts/label-df.material”.

By the way you can create GUI nodes at runtime, with gui.clone, gui.clone_tree, gui.new_text_node, etc. See the API doc.

4 Likes