Struct HitTestResult | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023