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(...)

asked Nov 16, 2018 in Engine by DrewS (89 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.