Documentation

Unity Engine

Download Unity

Unity Engine

GetShortArrayElement(nint, int)

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

Definition

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

GetShortArrayElement(IntPtr, int)

public static short GetShortArrayElement(nint array, int index)

Parameters

array

The Java array to read from.

index

The index of the array element.

Returns

Type

Description

shortThe value of the array element.

Remarks

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