ドキュメント

Unity Engine

Unity Engine

OverlapPoint(Vector2)

Check if a collider overlaps a point in space.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
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.