Struct RectHitBox2D
Describes a 2D hit box for simple picking.
Namespace: Unity.Tiny.HitBox2D
Syntax
public struct RectHitBox2D : IComponentData
Remarks
Hit boxes can be separate from sprite rendering, but should have a transform component.
Fields
box
Defines the hit-area rectangle used for picking and non-physics collision checks. Its pivot point is at coordinates 0,0.
Declaration
public Rect box
Field Value
Type | Description |
---|---|
Rect |
Properties
Default
Declaration
public static RectHitBox2D Default { get; }
Property Value
Type | Description |
---|---|
RectHitBox2D |