# Sansar.Script

> Types in the Sansar.Script namespace.

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

| Type | Kind | Summary |
|---|---|---|
| [AddEntryAttribute](/scripting/api/sansar.script/addentryattribute) | Class | A |
| [CancelData](/scripting/api/sansar.script/canceldata) | Class | The event is sent when a subscription is canceled. |
| [ComponentId](/scripting/api/sansar.script/componentid) | Struct | Encapsulates a Component Id. |
| [CoroutineException](/scripting/api/sansar.script/coroutineexception) | Class | An exception occurred relating to Coroutine execution. |
| [DefaultScriptAttribute](/scripting/api/sansar.script/defaultscriptattribute) | Class | Tags a class to be the default selection for this script project. |
| [DefaultValueAttribute](/scripting/api/sansar.script/defaultvalueattribute) | Class | Set a default value to show in the script properties field. |
| [DisplayNameAttribute](/scripting/api/sansar.script/displaynameattribute) | Class | Set the name to be shown in script properties for this field. |
| [EditorVisibleAttribute](/scripting/api/sansar.script/editorvisibleattribute) | Class | Explicitly set the editor visibility of a script field or class. |
| [EntriesAttribute](/scripting/api/sansar.script/entriesattribute) | Class | List of entries to populate IList or IDictionary properties with. |
| [ErrorModeAttribute](/scripting/api/sansar.script/errormodeattribute) | Class | Set the Api Error mode for this script. |
| [EventData](/scripting/api/sansar.script/eventdata) | Class | Base class for events. |
| [ICoroutine](/scripting/api/sansar.script/icoroutine) | Interface | Token representing a coroutine. |
| [IEventSubscription](/scripting/api/sansar.script/ieventsubscription) | Interface | Token representing an event subscription. |
| [InstanceInterface](/scripting/api/sansar.script/instanceinterface) | Class | Base class for all Sansar Script Object Oriented C\# interfaces. |
| [LockedAttribute](/scripting/api/sansar.script/lockedattribute) | Class | Locks the IDictionary or IList properties so entries can not be added or removed. |
| [Log](/scripting/api/sansar.script/log) | Class | The Log class handles script logging and error reporting |
| [Log.Message](/scripting/api/sansar.script/log.message) | Struct | Represents a single console message. |
| [LogLevel](/scripting/api/sansar.script/loglevel) | Enum | Used by [`Log`](/scripting/api/sansar.script/log) to filter messages. |
| [MaxEntriesAttribute](/scripting/api/sansar.script/maxentriesattribute) | Class | Set the Maximum number of array values allowed. |
| [Memory](/scripting/api/sansar.script/memory) | Class | The Memory class reports on script pool memory use. |
| [Memory.SubscriptionHandler](/scripting/api/sansar.script/memory.subscriptionhandler) | Delegate | Notifies scripts about memory events. |
| [MemoryData](/scripting/api/sansar.script/memorydata) | Class | Notifies scripts about memory events. |
| [MemoryUseLevel](/scripting/api/sansar.script/memoryuselevel) | Enum | Used by [`Memory`](/scripting/api/sansar.script/memory) to report script memory use. |
| [MinEntriesAttribute](/scripting/api/sansar.script/minentriesattribute) | Class | Set the Minimum number of array values allowed. |
| [NonReflectiveAttribute](/scripting/api/sansar.script/nonreflectiveattribute) | Class | Prevents methods from being reflected using [`Reflective.AsInterface`](/scripting/api/sansar.script/reflective#asinterface). |
| [ObjectId](/scripting/api/sansar.script/objectid) | Struct | Encapsulates an Object Id. |
| [OperationCompleteEvent](/scripting/api/sansar.script/operationcompleteevent) | Class | Many asynchronous APIs will trigger an OperationCompleteEvent when done. |
| [RangeAttribute](/scripting/api/sansar.script/rangeattribute) | Class | Specify a range of valid values for the field in script properties. |
| [Reflective](/scripting/api/sansar.script/reflective) | Class | Base class which provides for simple reflection of methods through a given interface. |
| [Reflective.Context](/scripting/api/sansar.script/reflective.context) | Enum | Use with [`RegisterReflectiveAttribute`](/scripting/api/sansar.script/registerreflectiveattribute)  and `Reflective.Register` to specify specific access context for the registered reflective class. |
| [Reflective.ReflectiveBase](/scripting/api/sansar.script/reflective.reflectivebase) <span class="api-stripped-only">Client documentation only</span> | Class | Internal support class. |
| [RegisterReflectiveAttribute](/scripting/api/sansar.script/registerreflectiveattribute) | Class | Registers this class to be found via [`ScenePrivate.FindReflective`](/scripting/api/sansar.simulation/sceneprivate#findreflective). |
| [ScriptBase](/scripting/api/sansar.script/scriptbase) | Class | Base class for all scripts, has ScriptHandle accessors and coroutine utilities. |
| [ScriptBase.OperationComplete](/scripting/api/sansar.script/scriptbase.operationcomplete) | Delegate | Used to obtain notification that the operation has completed. |
| [ScriptBase.ScopedLock](/scripting/api/sansar.script/scriptbase.scopedlock) | Class | Returned from [`ScriptBase.Lock`](/scripting/api/sansar.script/scriptbase#lock) for use in using statements. |
| [ScriptEventData](/scripting/api/sansar.script/scripteventdata) | Class | Result of a [`ScriptBase.PostScriptEvent`](/scripting/api/sansar.script/scriptbase#postscriptevent-scriptid-string-reflective) call. |
| [ScriptHandle](/scripting/api/sansar.script/scripthandle) | Class | A running script in Sansar. |
| [ScriptId](/scripting/api/sansar.script/scriptid) | Struct | Encapsulates an Script Id. |
| [SessionId](/scripting/api/sansar.script/sessionid) | Struct | Encapsulates a Session Id. |
| [SimpleScriptEventData](/scripting/api/sansar.script/simplescripteventdata) <span class="api-stripped-only">Client documentation only</span> | Class | Used by [`ScriptBase.PostSimpleScriptEvent`](/scripting/api/sansar.script/scriptbase#postsimplescriptevent-string-object) to send simple script events. |
| [ThrottleException](/scripting/api/sansar.script/throttleexception) | Class | Thrown when a method is called too often |
| [Timer](/scripting/api/sansar.script/timer) | Class | The Timer class is a static class that manages timer events for a script. |
| [TooltipAttribute](/scripting/api/sansar.script/tooltipattribute) | Class | Set a helpful tooltip message to show in the editor. |

<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>