Click or drag to resize
AB4D logo

BaseMouse3DEventArgsHitObjectName Property

Gets the name of the hit Model3D or Visual3D.

Namespace: Ab3d.Common.EventManager3D
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax
C#
public string HitObjectName { get; }

Property Value

String
Remarks

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

If HitEventSource3D is ModelEventSource3D, than its TargetModelName is get. If it is VisualEventSource3D, than its TargeVisualName is get. If it is MultiModelEventSource3D, than its HitModelName is get. If it is MultiVisualEventSource3D, than its HitVisualName is get.

The HitObjectName is set only when the EventSource3D object is defined by its name.

To get the hit Model3D or Visual3D (and not its name), use HitObject.

See Also