Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetLongArrayElement(nint, int, long)

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

Definition

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

SetLongArrayElement(IntPtr, int, long)

public static void SetLongArrayElement(nint array, int index, long 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 SetLongArrayRegion(), called with region size set to 1.