+1 vote

I'm not really sure how to word this, but essentially I want to find the 2d position of a 3d object on the screen. I'm trying to a make system that creates a 2d rectangular overlay using a control over a 3d object, but I'm not sure how to create a system that places the rectangle. So, how could I make a script that creates a GUI rectangle over a 3d cube?

in Engine by (37 points)

1 Answer

+5 votes
Best answer

Nevermind, after lots and lots of digging I found out about camera.unproject_position(Vector3) from another page! :)

by (37 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.