Handler for agent grab events.
public class HeldObjectData : Sansar.Script.EventDataMembers at a glance
| Kind | Members |
|---|---|
| Properties | ComponentId · HeldObjectEvent · HeldObjectInfo · ObjectId |
| Methods | ToString |
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
- BanHammerExample.cs
- PewPewExample.cs
- ScriptLibrary/Scene/GrabRelease.cs
- ScriptLibrary/Scene/Selector.cs
- ScriptLibrary/Scene/Targeting.cs
Generated from the Sansar 47.10.0 client ScriptApi snapshot.