Skip to content

Add a gizmo handle to tweak Camera2D's draw_limits property #1166

@boukew99

Description

@boukew99

Describe the project you are working on:
2D project with small closed off rooms.

Describe the problem or limitation you are having in your project:
Wanted to align limit_left, right, up and down of Camera2D with the walls of the room. I did this by filling in numbers by trial-and-error. This was much slower compared to using a handle in the editor for making a collision shape for example.

Describe the feature / enhancement and how it helps to overcome the problem or limitation:
Add an handle to grab the line with the mouse in the editor just as for some other nodes.
image

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
I assume you can reuse the code that is used to create handlebars for CollisionShapes or for Sprite node.

If this enhancement will not be used often, can it be worked around with a few lines of script?:
no

Is there a reason why this should be core and not an add-on in the asset library?:
It is in line with other editor features.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions