Create a release package with custom configuration
- Last UpdatedJul 25, 2024
- 1 minute read
In some cases, different nodes may need special configuration files customization. For example, two field operators may have different equipment or the XR Instructor may need to disable the InteractionActionMenu display.
In these projects, instead of building different dedicated \_release versions with different settings, you can define configuration files using the Project Properties Editor.
Test player nodes
Use the XR Studio application toolbar to directly test player nodes that are related to configuration.
Load a configuration
To let XR Viewer or XR Instructor executable load and apply a configuration, its name must be passed to the executable as a parameter. A good solution is to develop batch file launchers. You can put these launchers directly into \Code development folder so that they are exported into the \_release folder automatically.
Code example
For example, consider the need to pass a configuration called instructor.xml to the XR Instructor executable.
The launch_instructor.bat file content would be:
InstructorStationNG -configuration .\GameData\configuration\instructor.xml
Cybersecurity NoteNot all configurations can run properly on a given deploy and certain engine configurations can expand the potential attack surface of the solution. We strongly advise the following measures:
After the solution has been delivered, the goals are to maintain the flexibility for future changes by an Administrator user, but also to protect the application against malicious attempts by other users. |