Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


this[]

Access NativeArray<T> elements by index.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

this[int]

public T this[int index] { get; set; }

Parameters

index

Returns

Type

Description

T

Remarks

Structs are returned by value and not by reference.