Struct PickRequest ​
Namespace: ValveResourceFormat.Renderer.Editor.Picking
Assembly: Renderer.dll
A request to find what is drawn under a point in the viewport.
csharp
public readonly record struct PickRequest : IEquatable<PickRequest>Implements ​
Constructors ​
PickRequest(int, int, PickIntent, PickModifiers) ​
A request to find what is drawn under a point in the viewport.
csharp
public PickRequest(int X, int Y, PickIntent Intent, PickModifiers Modifiers = PickModifiers.None)Parameters ​
X int
X position in viewport pixels.
Y int
Y position in viewport pixels, from the top.
Intent PickIntent
What the pick is for.
Modifiers PickModifiers
Modifier keys held when the pick was requested.
Properties ​
Intent ​
What the pick is for.
csharp
public PickIntent Intent { get; init; }Property Value ​
Modifiers ​
Modifier keys held when the pick was requested.
csharp
public PickModifiers Modifiers { get; init; }Property Value ​
X ​
X position in viewport pixels.
csharp
public int X { get; init; }Property Value ​
int
Y ​
Y position in viewport pixels, from the top.
csharp
public int Y { get; init; }Property Value ​
int

