Skip to content

Get Sansar

Script API

InstanceInterface

Where: Client
More page actions

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

Class Namespace Sansar.Script

Base class for all Sansar Script Object Oriented C# interfaces.

public class InstanceInterface

Remarks

Internal.

Members at a glance

KindMembers
PropertiesIsValid
Operatorsop_Implicit

Properties

IsValid

public bool IsValid { get; }

Whether or not this interface is valid.

Value: bool — True if this interface is valid

Remarks

This function is provided for debugging and convenience only. Scripts are frequently “force yielded”, which means there is still the (rare) possibility that on the line after checking IsValid the interface could become invalid. It is highly recommended to “program defensively” and wrap the use of volatile interfaces, like AgentPrivate, in try/catch blocks. Once an interface becomes invalid it will never again become valid. Attempting to call any method on an invalid interface may throw an exception.

Operators

op_Implicit

public static implicit operator IntPtr(InstanceInterface instance)

Internal use only.

ParameterTypeDescription
instanceInstanceInterface

Returns: IntPtr

Generated from the Sansar 47.10.0 client ScriptApi snapshot.