Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetCharArrayElement(nint, int, char)

Sets the char value of one element in a primitive array.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule

SetCharArrayElement(IntPtr, int, char)

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

Parameters

array

The Java array to modify.

index

The index of the array element.

val

The value to assign to the field.

Remarks

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