If you create a new project and use the Desktop game template, that is already set for you. In the main.script you’ll see that it is in the init function.