Documentation

Unity Engine

Download Unity

Unity Engine

Contains(Vector2)

Checks whether a position lies inside the region.
Read time 1 minuteLast updated 22 days ago

Definition

public bool Contains(Vector2 position)

Parameters

position

The position in meters.

Returns

Type

Description

boolTrue when the position lies inside the region.