Skip to content

Get Sansar

Scripting

Add behavior to your worlds with C# scripts: guides, example scripts and the Script API reference.

Where: Both
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

  • 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.

  • 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