文档

Unity Engine

Unity Engine

OverlapPoint(Vector2)

Check if a collider overlaps a point in space.
阅读时间1 分钟最后更新于 1 天前

Definition

public bool OverlapPoint(Vector2 point)

Parameters

point

A point in world space.

Returns

Type

Description

boolDoes point overlap the collider?

Remarks

This will always return false when used on an EdgeCollider2D.