Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

RectInt.Contains

public bool Contains(Vector2Int position);

Parameters

position Position to check.
inclusive Whether the max limits are included in the check.

Returns

bool Whether the position is within the RectInt.

Description

Returns true if the given position is within the RectInt.

Did you find this page useful? Please give it a rating: