LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

Vector2Int.this[int]

public int this[int];

Description

Access the x or y component using [0] or [1] respectively.