Struct HitTestResult
The HitTest(float3, Entity) function returns this structure.
Namespace: Unity.Tiny.HitBox2D
Syntax
public struct HitTestResult : IComponentData
Fields
entityHit
Specifies the hit entity, or NONE if no entity is hit.
Declaration
public Entity entityHit
Field Value
Type | Description |
---|---|
Entity |
uv
Specifies normalized [0..1] coordinates for a hit location on a sprite. The coordinate system's origin is the lower-left corner.
Declaration
public float2 uv
Field Value
Type | Description |
---|---|
float2 |