UIRenderFeature.HitTestResult Class
Namespace: Stride.Rendering.UIAssembly: 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. |
|
Constructors
HitTestResult(Single, UIElement, Vector3)
public HitTestResult(float depthBias, UIElement element, Vector3 intersection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | depthBias | |
| UIElement | element | |
| Vector3 | intersection |
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 |