# SetByteField(IntPtr, IntPtr, byte)

> Sets the value of an instance field of the specified object.

## Definition

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

> **Warning:**
>
> **Deprecated.** AndroidJNI.SetByteField is obsolete. Use AndroidJNI.SetSByteField method instead

```csharp
public static void SetByteField(IntPtr obj, IntPtr fieldID, byte val)
```

### Parameters

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

### Remarks

[AndroidJNI.SetByteField](/engine/6000.0/script-reference/unityengine/androidjni/setbytefield.md) is obsolete. Use [AndroidJNI.SetSByteField](/engine/6000.0/script-reference/unityengine/androidjni/setsbytefield.md) instead.

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