# fnPtr

> The pointer to the native function that is called from the Java code.

## Definition

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

```csharp
public IntPtr fnPtr
```

### Remarks

Obtain this pointer by calling `Marshal.GetFunctionPointerForDelegate`, where the delegate refers to a method annotated with `MonoPInvokeCallback` attribute. The method must have the signature: `static ReturnType MyMethod(IntPtr jniEnv, IntPtr objectOrClass, ...);`
