Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


this[]

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

Definition

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.