# SetStaticByteField(nint, nint, byte)

> Sets the value of a static field in the specified object.

## Definition

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

## SetStaticByteField(IntPtr, IntPtr, byte)

> **Warning:**
>
> **Deprecated.** AndroidJNI.SetStaticByteField is obsolete. Use AndroidJNI.SetStaticSByteField method instead

```csharp
public static void SetStaticByteField(nint clazz, nint 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.SetStaticByteField](/engine/6000.5/script-reference/unityengine/androidjni/setstaticbytefield.md) is obsolete. Use [AndroidJNI.SetStaticSByteField](/engine/6000.5/script-reference/unityengine/androidjni/setstaticsbytefield.md) instead.

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