Add a new XRS Script file
- Last UpdatedApr 24, 2024
- 1 minute read
New XRS files should be added in the project folder under the logic folder in any subfolder.
The logic folder usually is configured as ./GameData/Logic. This is the default you will find in any project template.
Add an existing XRS file
-
In the Project Explorer tab, right-click an existing section or a newly created one, and select Add Existing File > Xrs Script. This will open the File Explorer where you can browse to an existing .xrs file.

Add a new XRS file
-
In the Project Explorer tab, right-click an existing section or a newly created one, and select Add New File > Xrs Script, which will open a popup window where you can type the name of the new .xrs file. The file will be created under ./GameData/Logic/user folder.
The new .xrs file will be generated from a template with a predefined namespace, a class, a variable, and a method.
