0 votes

I remember hearing that the Godot editor itself uses the Godot UI pieces to render itself. Given that, when one say creates a Godot Sprite node in the editor and clicks on it, it creates a pink outline around it w/ circle manipulators/handles one can use to resize it.

I am wanting that sort of functionality in a game (not just the editor...i know there's a tool to do that in the editor only). Let's pretend I am making an image program/game using gotdot and an in game mechanic wanted is to resize using a handle/manipulator like that (so when a handle is grabbed and moved a signal can be called).

I have started down the path of an Area2D and using DrawLines and DrawCircles along the rectangle collision shape to get the initial render. But then I started thinking if I was making this too hard as in the editor itself it does this - so maybe I'm missing a node or checkbox that gives me this sort of thing "for free"?

asked Dec 29, 2019 in Engine by dsobiera (12 points)

I know that this is the exact opposite of what you want, but maybe if you reverse engineer this exaple, you might be able to make what you want. This is a plugin that generates some purple handles and you use it in the editor.

https://www.youtube.com/watch?v=H6TfKYtuM9U

Maybe you could tweak it and have it run in-game. Otherwise I think I would go for your original plan too. Still, your intuition must be correct, so I would like to find out about it as well.

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.