Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ColliderHit

Struct used to retrieve information from an Overlap batch query.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Struct
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public struct ColliderHit

Remarks

Properties

Property

Description

colliderThe Collider that was hit.
instanceIDThe instance ID of the Collider that was hit.