文档

Unity Engine

Unity Engine

this[]

Access NativeArray<T> elements by index.
阅读时间1 分钟最后更新于 1 个月前

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.