Documentation

Unity Engine

Download Unity

Unity Engine

SetShortArrayElement(nint, int, short)

Sets the short value of one element in a primitive array.
Read time 1 minuteLast updated a month ago

Definition

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

SetShortArrayElement(IntPtr, int, short)

public static void SetShortArrayElement(nint array, int index, short val)

Parameters

array

The Java array to modify.

index

The index of the array element.

The value to assign to the field.

Remarks

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