Edit of asset "Custom Project Runner" Accepted

Old/Current New/Edit
Title Custom Project Runner Custom Project Runner
Description Plugin that can run your project and pass some data from editor to your game. For example, you can run the game and spawn player at the position of cursor in the editor to quickly test parts of a level.

Before using the plugin, you need to configure it first by editing "addons/CustomRunner/CustomRunner.gd" file, following the comments in the file. The interesting bit are 3 methods:

_can_play_scene() - called when pressing the plugin shortcut (F7 by default). The current scene is passed to that method and if it returns true, the plugin will run the project. You can for example check if this scene is a Level class (if you have one).

_gather_variables() - called before running the project from the plugin. Use add_variable() to add variables that you want to pass from editor to the game. By default it passes "scene" variable, which contains filename of the current scene. There's also an example line that adds current cursor position.

_get_game_scene() - return the main scene you want to run. This should be your "game" scene, i.e. scene that has player, HUD and instantiates the level etc. Leave empty to run the currently opened scene instead.

After the project is started using the plugin, use CustomRunner.get_variable(variable_name) to retrieve the data passed from the editor. You can also use CustomRunner.is_custom_running() to check if the game is running using the plugin and data is available.

Check the repository page for more info and example project.
Plugin that can run your project and pass some data from editor to your game. For example, you can run the game and spawn player at the position of cursor in the editor to quickly test parts of a level.

Before using the plugin, you need to configure it first by editing "addons/CustomRunner/CustomRunner.gd" file, following the comments in the file. The interesting bit are 3 methods:

_can_play_scene() - called when pressing the plugin shortcut (F7 by default). The current scene is passed to that method and if it returns true, the plugin will run the project. You can for example check if this scene is a Level class (if you have one).

_gather_variables() - called before running the project from the plugin. Use add_variable() to add variables that you want to pass from editor to the game. By default it passes "scene" variable, which contains filename of the current scene. There's also an example line that adds current cursor position.

_get_game_scene() - return the main scene you want to run. This should be your "game" scene, i.e. scene that has player, HUD and instantiates the level etc. Leave empty to run the currently opened scene instead.

After the project is started using the plugin, use CustomRunner.get_variable(variable_name) to retrieve the data passed from the editor. You can also use CustomRunner.is_custom_running() to check if the game is running using the plugin and data is available.

Check the repository page for more info and example project.
Category Tools Tools
License MIT MIT
Repository Provider GitHub GitHub
Repository Url https://github.com/KoBeWi/Godot-Custom-Runner https://github.com/KoBeWi/Godot-Custom-Runner
Issues Url https://github.com/KoBeWi/Godot-Custom-Runner/issues https://github.com/KoBeWi/Godot-Custom-Runner/issues
Godot version Godot 3.4 Godot 3.4
Version String 1.1 1.0
Download Commit 4e91ea0037bbfe3484ecf1d8136855a8081c9b51 698eb5b3b9153ac4c6da08ac513ec44b709b610d
Download Url (Computed) https://github.com/KoBeWi/Godot-Custom-Runner/archive/4e91ea0037bbfe3484ecf1d8136855a8081c9b51.zip https://github.com/KoBeWi/Godot-Custom-Runner/archive/698eb5b3b9153ac4c6da08ac513ec44b709b610d.zip
Icon Url https://github.com/KoBeWi/Godot-Custom-Runner/blob/master/Media/Icon.png?raw=1
https://github.com/KoBeWi/Godot-Custom-Runner/blob/master/Media/Icon.png?raw=1