Skip to content

Get Sansar

Script API

HeldObjectData

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 grab events.

public class HeldObjectData : Sansar.Script.EventData

Members at a glance

KindMembers
PropertiesComponentId · HeldObjectEvent · HeldObjectInfo · ObjectId
MethodsToString

Properties

ComponentId

public Sansar.Script.ComponentId ComponentId { get; }

The ComponentId of the held object’s RigidBodyComponent.

HeldObjectEvent

public HeldObjectEventType HeldObjectEvent { get; }

The type of held object event which occurred.

HeldObjectInfo

public HeldObjectInfo HeldObjectInfo { get; }

information about the held object

ObjectId

public Sansar.Script.ObjectId ObjectId { get; }

The ObjectId of the held object.

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.