# GetByteField(IntPtr, IntPtr)

> Returns the value of an instance (nonstatic) field of an object.

## Definition

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

> **Warning:**
>
> **Deprecated.** AndroidJNI.GetByteField is obsolete. Use AndroidJNI.GetSByteField method instead

```csharp
public static byte GetByteField(IntPtr obj, IntPtr fieldID)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): **** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)):&#x20;

### Returns

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

### Remarks

[AndroidJNI.GetByteField](/engine/6000.0/script-reference/unityengine/androidjni/getbytefield.md) is obsolete. Use [AndroidJNI.GetSByteField](/engine/6000.0/script-reference/unityengine/androidjni/getsbytefield.md) instead.

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