0 votes

Recently i noticed the clamped() function on Vector2 and started using it and everything
was fine in the editor.
After a working a bit, i decided to test a export to exe.

When i run the exported file, Godot says that the function don't exist, flooding the
console with errors and not working correctly.

I searched around and couldn't find anything on the subject.
Does anyone know what is wrong, or at least had the same problem?

Thanks in advance!

in Engine by (20 points)

1 Answer

+2 votes
Best answer

Your export templates are probably outdated, I think Vector2.clamped was added in 2.1.1.
Editor and export templates should always be updated together so they're based on the same version

by (1,098 points)
selected by

You're totally right, completely forgot the templates.

Thanks for the quick help!

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 Frequently asked questions and 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 [email protected] with your username.