2D node resize controls

Godot Version

v4.2.1.stable.official [b09f793f5]

Question

Hello!

I’m currently in the process of creating an editor tool for myself that would help me design levels. The editor tool would fill a rectangle defined by me with sprites in an ordered pattern.

My issue is that:

  1. I don’t know how to add custom resize anchors/handles to a custom node/script.
  2. Using a Sprite2D node and it’s in-built resize anchors means that underneath my custom _draw() function is also the Sprite2D’s rendering of the texture. I do not know how to turn that off without turning of my own rendering as well.

If either of these issues could be resolved, I would be able to add the editor tool as I need it.

Thanks for any help in advance!

Hi again!

Found a solution to my problem. Turns out I needed to create something called an “EditorPlugin” and found a helpful youtube video (its for godot 3, but I’m hoping it translates well to 4.2) that creates exactly the sort of rectangle area selection tool I need:

1 Like