Struct HitBoxOverlap
When added to an entity, this component describes overlap between that entity and another entity with a Sprite2DRendererHitBox2D HitBox2D component attached.
Namespace: Unity.Tiny.HitBox2D
Syntax
public struct HitBoxOverlap : IBufferElementData
Fields
camera
Specifies the camera that sees the overlap.
Declaration
public Entity camera
Field Value
Type | Description |
---|---|
Entity |
otherEntity
Specifies the "other" entity, which has a Sprite2DRendererHitBox2D or HitBox2D component attached.
Declaration
public Entity otherEntity
Field Value
Type | Description |
---|---|
Entity |