# GetRawObject()

> Retrieves the raw jobject pointer to the Java object. Note: Using raw JNI functions requires advanced knowledge of the Android Java Native Interface (JNI).

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AndroidJNIModule

```csharp
public nint GetRawObject()
```

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [IntPtr](https://learn.microsoft.com/dotnet/api/system.intptr) |             |

### Remarks

Additional Resources: [AndroidJavaObject.GetRawClass](/engine/6000.5/script-reference/unityengine/androidjavaobject/getrawclass.md)

### Examples

```csharp
using System;
using UnityEngine;

public class AndroidJavaObjectGetRawObjectExample: MonoBehaviour
{
    void Start()
    {
        using (AndroidJavaObject javaObject = new AndroidJavaObject("com.example.exampleunityplugin.ExampleJavaClass"))
        {
            IntPtr rawObject = javaObject.GetRawObject();
            string message = javaObject.Call<string>("getMessage");

            Debug.Log("Message: " + message + " Pointer: "+ rawObject);
        }
    }
}
```
