Overview
The ScriptAPI is the runtime scripting layer for Simuspaces worlds. A script is a C# class derived from Simuspaces.Simulation.SimuScriptBase. 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 Simuspaces, dynamic objects and animated mesh do not automatically sync position/states/etc. To sync animation, see the example scripts for animation sync. To sync dynamic objects (rigidbody enabled) all you have to do is add any script to the object, it can even be a just an empty class with the Simuspaces.Simulation include.
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 ExamplesAbout 26 editable C# samples loaded directly from the raw files beside these docs.