Skip to content

Get Sansar

Script API

SitObjectData

Where: Client
More page actions

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

Class Namespace Sansar.Simulation Inherits Sansar.Script.EventData

Handler for agent sit events.

public class SitObjectData : Sansar.Script.EventData

Members at a glance

KindMembers
PropertiesComponentId · ObjectId · SitObjectEvent · SitObjectInfo
MethodsToString

Properties

ComponentId

public Sansar.Script.ComponentId ComponentId { get; }

The ComponentId of the object the agent is sitting on RigidBodyComponent.

ObjectId

public Sansar.Script.ObjectId ObjectId { get; }

The ObjectId of the object the agent is sitting on

SitObjectEvent

public SitEventType SitObjectEvent { get; }

The type of sit event which occurred.

SitObjectInfo

public SitObjectInfo SitObjectInfo { get; }

information about the object the agent is sitting on

Methods

ToString

public override string ToString()

A string representation of this object.

Returns: string — A string representation of this object.

Remarks

The format of this string may change between releases.

Used in examples

Generated from the Sansar 47.10.0 client ScriptApi snapshot.