Base |
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.