文档

Unity Engine

Unity Engine

this[]

An indexer allowing access to any Collider2D in the collection.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule

this[int]

public readonly Collider2D this[int index] { get; }

Parameters

index

Returns

Type

Description

Collider2D

Remarks

This must be in the range of 0 to ColliderArray2D.Length-1.