Overview
The ScriptAPI is the runtime scripting layer for TestPlatform5 worlds. A script is a C# class derived from IHXR.Simulation.ScriptBase. The base class supplies lifecycle callbacks, safe object references, world user events, inter-script messaging, chat command callbacks, client-side visual commands, triggers, collisions, interactables, dialogs, inventory spawning, spritesheet controls, player controls, and logging.
In TestPlatform5, dynamic objects (with a rigidbody) and animated meshes stay in sync for everyone automatically, with no script needed: physics is simulated on the server, and animations play from the server's clock, so every player sees them in the same place at the same moment. Scripts are only needed to change them while the world runs, for example to start, stop or switch an animation for everyone, or to push and move objects; see the Examples.
Script class shape, public inspector fields, object slots, target users, and safe first patterns.
Reference API MembersGrouped type, event, method, enum, and helper summaries from the script base.
Source Working Examples30 editable C# samples loaded directly from the raw files beside these docs.
