Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetFloatArrayElement(nint, int, float)

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

Definition

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

SetFloatArrayElement(IntPtr, int, float)

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