Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    UIRenderFeature.HitTestResult Class

    Namespace: Stride.Rendering.UI
    Assembly: Stride.UI.dll

    Represents the result of a hit test on the UI.

    System.Object → UIRenderFeature.HitTestResult
    Derived from UIRenderFeature.HitTestResult:

    public class HitTestResult
    Name Description
    Constructors
    HitTestResult(Single, UIElement, Vector3)
    Properties
    DepthBias
    Element

    Element that was hit.

    IntersectionPoint

    Point of intersection between the ray and the hit element.

    | Improve this Doc View Source

    Constructors


    HitTestResult(Single, UIElement, Vector3)

    public HitTestResult(float depthBias, UIElement element, Vector3 intersection)
    Parameters
    Type Name Description
    System.Single depthBias
    UIElement element
    Vector3 intersection
    | Improve this Doc View Source

    Properties


    DepthBias

    public float DepthBias { get; }
    Property Value
    Type Description
    System.Single

    Element

    Element that was hit.

    public UIElement Element { get; }
    Property Value
    Type Description
    UIElement

    IntersectionPoint

    Point of intersection between the ray and the hit element.

    public Vector3 IntersectionPoint { get; }
    Property Value
    Type Description
    Vector3

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation