Click or drag to resize
AB4D logo

BaseMouse3DEventArgsHitObject Property

Gets the hit Model3D or Visual3D.

Namespace: Ab3d.Common.EventManager3D
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public Object HitObject { get; }

Property Value

Object
Remarks

HitObject is a helper property that gets the hit object from the HitEventSource3D. Without HitObject, the HitEventSource3D must be casted to the correct type before getting the hit object.

If HitEventSource3D is ModelEventSource3D, than its TargetModel3D is get. If it is VisualEventSource3D, than its TargetVisual3D is get. If it is MultiModelEventSource3D, than its HitModel is get. If it is MultiVisualEventSource3D, than its HitVisual3D is get.

To get the name of the hit Model3D or Visual3D, use HitObjectName.

See Also