godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.12k stars 69 forks source link

Allow drag and drop to the scene panel #128

Open golddotasksquestions opened 4 years ago

golddotasksquestions commented 4 years ago

Describe the project you are working on: Top down action game, card game

Describe the problem or limitation you are having in your project: Right now I can drag and drop scenes and assets like Sprites from the file panel to the viewport, but I cannot drop them to the scene panel (see gif below)

Describe how this feature / enhancement will help you overcome this problem or limitation: Drag'n'drop a sprite into a viewport is a lot faster than clicking the plus sign, searching for "Sprite", click ok, grabbing a texture and drag'n'dropping it into the sprites texture resource. For continuity but also to have a mechanism to conveniently and fast and accurate placing at the 0.0 position without having to turn on snapping first, I would like to drag'n'drop the files that allow drag and drop to the viewport also to the scene panel. This is an operation I do many many times a day, especially when prototyping.

Show a mock up screenshots/video or a flow diagram explaining how your proposal will work: cant_drag_to_scene_panel

Describe implementation detail for your proposal (in code), if possible: I don't know any C++

If this enhancement will not be used often, can it be worked around with a few lines of script?: It's a minor improvement of the built in UX, so I don't think so.

Is there a reason why this should be core and not an add-on in the asset library?: No one will/would/should go to the asset library to download minor UX improvements like this.

foxydevloper commented 3 years ago

With the ability to drag and drop audio files from the filesystem (PR: https://github.com/godotengine/godot/pull/51650), this proposal could allow for quickly adding non-spatial AudioStreamPlayer nodes by dragging an audio file into the scene tree. Rather than the spatial ones that are created by dragging audio files into the viewport