Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

OverlapPoint(point: Vector2): bool;
bool OverlapPoint(Vector2 point);
def OverlapPoint(point as Vector2) as bool

Parameters

pointA point in world space.

Description

Check if a collider overlaps a point in space.

This will always return false when used on an EdgeCollider2D.