# ToReflectedField(nint, nint, bool)

> Converts a field ID derived from cls to a \<tt\>java.lang.reflect.Field\</tt\> object.

## Definition

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

## ToReflectedField(IntPtr, IntPtr, bool)

```csharp
public static nint ToReflectedField(nint clazz, nint fieldID, bool isStatic)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The Java class that declares the field.**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The ID of the field.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Set to true for a static field. Set to false for an instance (nonstatic) field.

### Returns

| Type                                                           | Description                                                            |
| -------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [IntPtr](https://learn.microsoft.com/dotnet/api/system.intptr) | A local reference to the corresponding java.lang.reflect.Field object. |

### Remarks

Additional Resources: [Java Native Interface Specification (Oracle)](http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html)
