0 votes

I have a basic script with the tool keyword. If the script is running in the editor it draws the gizmos. One such gizmo is a circle located at a Vector2 point from the origin. I want to make it so I can drag-and-drop this gizmo to edit a Vector2 value in the script. I just do not know how to do this.

tool extends Area2D var v = Vector2(4,4) func _draw(): if Engine.is_editor_hint(): draw_circle(...)

in Engine by (96 points)

Please log in or register to answer this question.

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.