> For the complete documentation index, see [llms.txt](https://vc-docs.gitbook.io/engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vc-docs.gitbook.io/engine/home/doxygen_synced/classes/class_jint_object.md).

# JintObject

**Usage:** `api.JintObject.AddTriggerEnterListener(obj, cb, ref)`

Registers script callbacks on a JintObject. Trigger/collision listeners run server-side only; active/inactive listeners run client-side only.

## Public Functions

|      | Name                                                                                                                                                                                                                                                                                                                                                                    |
| ---- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_jint_object.md#function-addtriggerenterlistener"><strong>AddTriggerEnterListener</strong></a>(global::JintObject jObj, Action< UnityEngine.Collider, Jint.Native.JsValue > callback, Jint.Native.JsValue jsValue)<br>Adds a trigger-enter listener (server only).</p> |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_jint_object.md#function-addcollisionenterlistener"><strong>AddCollisionEnterListener</strong></a>(global::JintObject jObj, Action< Collision, Jint.Native.JsValue > callback, Jint.Native.JsValue jsValue)<br>Adds a collision-enter listener (server only).</p>      |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_jint_object.md#function-addtriggerexitlistener"><strong>AddTriggerExitListener</strong></a>(global::JintObject jObj, Action< UnityEngine.Collider, Jint.Native.JsValue > callback, Jint.Native.JsValue jsValue)<br>Adds a trigger-exit listener (server only).</p>    |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_jint_object.md#function-addonactivelistener"><strong>AddOnActiveListener</strong></a>(global::JintObject jObj, Action< Jint.Native.JsValue > callback, Jint.Native.JsValue jsValue)<br>Adds a listener fired when the object becomes active (client only).</p>        |
| void | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/tree/main/Classes/Classes/class_jint_object.md#function-addoninactivelistener"><strong>AddOnInactiveListener</strong></a>(global::JintObject jObj, Action< Jint.Native.JsValue > callback, Jint.Native.JsValue jsValue)<br>Adds a listener fired when the object becomes inactive (client only).</p>  |

## Public Functions Documentation

### function AddTriggerEnterListener

```csharp
static void AddTriggerEnterListener(
    global::JintObject jObj,
    Action< UnityEngine.Collider, Jint.Native.JsValue > callback,
    Jint.Native.JsValue jsValue
)
```

Adds a trigger-enter listener (server only).

**Parameters**:

* **jObj** The JintObject.
* **callback** Callback receiving the other collider and a script reference.
* **jsValue** Script object reference.

### function AddCollisionEnterListener

```csharp
static void AddCollisionEnterListener(
    global::JintObject jObj,
    Action< Collision, Jint.Native.JsValue > callback,
    Jint.Native.JsValue jsValue
)
```

Adds a collision-enter listener (server only).

**Parameters**:

* **jObj** The JintObject.
* **callback** Callback receiving the collision and a script reference.
* **jsValue** Script object reference.

### function AddTriggerExitListener

```csharp
static void AddTriggerExitListener(
    global::JintObject jObj,
    Action< UnityEngine.Collider, Jint.Native.JsValue > callback,
    Jint.Native.JsValue jsValue
)
```

Adds a trigger-exit listener (server only).

**Parameters**:

* **jObj** The JintObject.
* **callback** Callback receiving the other collider and a script reference.
* **jsValue** Script object reference.

### function AddOnActiveListener

```csharp
static void AddOnActiveListener(
    global::JintObject jObj,
    Action< Jint.Native.JsValue > callback,
    Jint.Native.JsValue jsValue
)
```

Adds a listener fired when the object becomes active (client only).

**Parameters**:

* **jObj** The JintObject.
* **callback** Callback receiving a script reference.
* **jsValue** Script object reference.

### function AddOnInactiveListener

```csharp
static void AddOnInactiveListener(
    global::JintObject jObj,
    Action< Jint.Native.JsValue > callback,
    Jint.Native.JsValue jsValue
)
```

Adds a listener fired when the object becomes inactive (client only).

**Parameters**:

* **jObj** The JintObject.
* **callback** Callback receiving a script reference.
* **jsValue** Script object reference.

***

Updated on 2026-07-22 at 12:00:00 +0800
