# SetCharArrayElement(nint, int, char)

> Sets the char value of one element in a primitive array.

## Definition

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

## SetCharArrayElement(IntPtr, int, char)

```csharp
public static void SetCharArrayElement(nint array, int index, char val)
```

### Parameters

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

### Remarks

This function is a special case of SetCharArrayRegion(), called with region size set to 1.

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