API Reference · Picking

PickEventArgs

Namespace: Ava3D

public sealed class PickEventArgs : EventArgs

Raised for every click when picking is enabled, whether or not anything was hit — a click on empty space reports a null PickEventArgs.Result rather than not being reported, because "the user deselected" is a thing an application needs to know.

Constructors

MemberDescription
PickEventArgs(PickResult result)

Raised for every click when picking is enabled, whether or not anything was hit — a click on empty space reports a null PickEventArgs.Result rather than not being reported, because "the user deselected" is a thing an application needs to know.

result

The nearest hit, or null.

Properties

MemberDescription
PickResult Result { get; }

The nearest hit, or null when the click missed everything.

See also