Scripting System
Use MiniScript to add runtime behavior to URT3D assets โ from animations and interactions to custom event logic. Learn how to write, trigger, and debug scripts in Unity.
Last updated
Use MiniScript to add runtime behavior to URT3D assets โ from animations and interactions to custom event logic. Learn how to write, trigger, and debug scripts in Unity.
Last updated
๐ Looking for detailed implementation docs? This page gives you a high-level overview, but you can always dive deeper in the official SDK documentation on GitHub:
MiniScript is a lightweight scripting language built into the URT3D runtime. It lets you define dynamic logic that runs when an asset loads, updates, or responds to custom events โ no C# required.
Use it to:
โข Animate assets โข React to clicks or hovers โข Move or rotate objects โข Communicate between assets โข Delay or sequence actions โข Run scripts per frame with Update()
Scripts are embedded inside .urta
files and authored through the URT3D component in Unity or via external tools.
OnLoad Runs once when the asset is loaded.
OnUpdate Runs every frame.
OnCustomEvent Runs only when manually triggered.
Example (C#):
Get a trait:
Set a value:
Check for a trait:
Trigger an event:
Use a delay:
Each script can be configured to run in one of the following:
โข EditorOnly โ Only in Unity Editor โข RuntimeOnly โ Only during Play Mode or builds โข Both โ Runs in all modes
Set this via the URT3D component in the Inspector.
Includes:
๐น Animate on load ๐น Hover/click reactions ๐น Delayed events ๐น Cross-asset messaging ๐น Scripted state logic
Weโve collected real-world MiniScript patterns in one place. โ
๐ฌ Need Help? ๐ฉ Email us at: