Skip to content

Add ability to quick run EditorScript from top menu bar of the editor #8923

@JUSTCAMH

Description

@JUSTCAMH

Describe the project you are working on

Any game

Describe the problem or limitation you are having in your project

Currently, EditorScripts are run from the script editor, by selecting File -> Run with the script selected. This is however incredibly cumbersome to use, as often editor scripts affect the scene, however with the script editor open, the scene is not visible. Furthermore, people using external IDEs would need to open the script editor just to run this code. EditorScripts should be easy access, in a spot that you can run at any time.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Add a Run button to the Scene tab in the top left toolbar. Selecting this lets you run an editor script quickly and easily from anywhere in the editor.

image

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

I can think of two different ways for this to work. The first would be similar to the "Run Specific Scene" button, where when you select Scene -> Run, it opens a popup with all the editor scripts, then you select the one you want and it runs.
image

The second option could be with a submenu, where when hovering over run, an additional layer of options appears, with one button for each editor script in the project. When no EditorScripts are present, a simple unselectable message could be shown instead.
image

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?

EditorScript is a core engine feature and is the go-to way to manually execute code in editor, but is currently cumbersome to use

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions