Skip to content

Get Sansar

Script API

Sansar.Script

Where: Client
More page actions

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

Script base classes, events, identifiers, logging and script configuration attributes.

TypeKindSummary
AddEntryAttributeClassA
CancelDataClassThe event is sent when a subscription is canceled.
ComponentIdStructEncapsulates a Component Id.
CoroutineExceptionClassAn exception occurred relating to Coroutine execution.
DefaultScriptAttributeClassTags a class to be the default selection for this script project.
DefaultValueAttributeClassSet a default value to show in the script properties field.
DisplayNameAttributeClassSet the name to be shown in script properties for this field.
EditorVisibleAttributeClassExplicitly set the editor visibility of a script field or class.
EntriesAttributeClassList of entries to populate IList or IDictionary properties with.
ErrorModeAttributeClassSet the Api Error mode for this script.
EventDataClassBase class for events.
ICoroutineInterfaceToken representing a coroutine.
IEventSubscriptionInterfaceToken representing an event subscription.
InstanceInterfaceClassBase class for all Sansar Script Object Oriented C# interfaces.
LockedAttributeClassLocks the IDictionary or IList properties so entries can not be added or removed.
LogClassThe Log class handles script logging and error reporting
Log.MessageStructRepresents a single console message.
LogLevelEnumUsed by Log to filter messages.
MaxEntriesAttributeClassSet the Maximum number of array values allowed.
MemoryClassThe Memory class reports on script pool memory use.
Memory.SubscriptionHandlerDelegateNotifies scripts about memory events.
MemoryDataClassNotifies scripts about memory events.
MemoryUseLevelEnumUsed by Memory to report script memory use.
MinEntriesAttributeClassSet the Minimum number of array values allowed.
NonReflectiveAttributeClassPrevents methods from being reflected using Reflective.AsInterface.
ObjectIdStructEncapsulates an Object Id.
OperationCompleteEventClassMany asynchronous APIs will trigger an OperationCompleteEvent when done.
RangeAttributeClassSpecify a range of valid values for the field in script properties.
ReflectiveClassBase class which provides for simple reflection of methods through a given interface.
Reflective.ContextEnumUse with RegisterReflectiveAttribute and Reflective.Register to specify specific access context for the registered reflective class.
Reflective.ReflectiveBase Client documentation onlyClassInternal support class.
RegisterReflectiveAttributeClassRegisters this class to be found via ScenePrivate.FindReflective.
ScriptBaseClassBase class for all scripts, has ScriptHandle accessors and coroutine utilities.
ScriptBase.OperationCompleteDelegateUsed to obtain notification that the operation has completed.
ScriptBase.ScopedLockClassReturned from ScriptBase.Lock for use in using statements.
ScriptEventDataClassResult of a ScriptBase.PostScriptEvent call.
ScriptHandleClassA running script in Sansar.
ScriptIdStructEncapsulates an Script Id.
SessionIdStructEncapsulates a Session Id.
SimpleScriptEventData Client documentation onlyClassUsed by ScriptBase.PostSimpleScriptEvent to send simple script events.
ThrottleExceptionClassThrown when a method is called too often
TimerClassThe Timer class is a static class that manages timer events for a script.
TooltipAttributeClassSet a helpful tooltip message to show in the editor.

Generated from the Sansar 47.10.0 client ScriptApi snapshot.