Skip to content

ProjectSetupUtility ​

Inherits: RefCounted

Utility for setting up project-wide settings like global shader parameters, audio buses, and input actions

Methods ​

voidsetup_main_scene() static
voidsetup_global_shader_parameters() static
voidsetup_audio_buses() static
voidsetup_default_configs() static
voidsetup_input_actions() static
voidsetup_all() static

Method descriptions ​

void setup_main_scene() ​

Setup the main game scene

void setup_global_shader_parameters() ​

Setup all global shader parameters needed for the project: every global of the toolkit (ShaderGlobals.LIST) that Project Settings does not have yet. Runs every time the editor starts, so a project made with an older version of the toolkit gets the new ones too

void setup_audio_buses() ​

Setup all required audio buses: create the missing ones and save them into the project's bus layout (they would be gone at the next start otherwise)

void setup_default_configs() ​

The settings files of the game (src/data/config_data/): a new project gets the toolkit's defaults, to edit in the Game Settings editors. A file that exists is never touched.

void setup_input_actions() ​

Setup input actions/keybinds

void setup_all() ​

Run all setup functions