- Home
- Scripting
Scripting
Add behavior to your worlds with C# scripts: guides, example scripts and the Script API reference.
Sansar uses C# scripts to provide dynamic behaviors and interactions.
Restricted Scripting APIs are subject to change or removal. When possible, they should be avoided and should not be sold nor traded. Any…
Latest update
There is a few external repository's of information please check these out until this info is reorganised into this documentation.
Scripting guides
Section titled “Scripting guides”Overview of Sansar scripting
Scripts add interactive behaviors to objects in an experience. In Sansar, you can create, upload and add your own scripts in C#.
You can add scripts to objects in order to make them perform actions or interact with avatars and the environment. When scripts are added…
Some scripts allow you to enter parameters to modify the way the script works. For example, the default script Teleport (Local) requires…
The script console allow developers to view script log messages in the Sansar client without having to use a helper logging script or…
A trigger volume is an invisible, non-collidable area that generates a Trigger event whenever an object or avatar enters or exits the area…
Scripts can contain direct references to Light, Audio, RigidBody or Animation components in the same scene. Among other capabilities, these…
Teleports any user that collides with the scripted object to a set of given coordinates within the same experience.
Simple Scripts user guide
See also:
Example scripts
Section titled “Example scripts”In Sansar, scripts allow you to add dynamic and interactive behaviors to objects. Here are a few example scripts that you can experiment…
Example Script: Cannonball
Example Script: Follow The Path
Example Script: Random Movement
Example Script: Reflective Detector and Tracker
Example Script: Simple Script
Example Script: Sound Randomizer
Example Script: Stats Example
Example Script: Teleport Hotkeys
Example Scripts: Visitor Tracker
Example Script: Mover Examples