I suspect that something is wrong with registering the EventSources to EventManager3D (you have not posted the code that does that).
With MultiModelEventSource3D it is very easy to change the selected objects. All you need to do is:
- first add object names to _eventManager.NamedObjects (you already do that).
- than register the MultiModelEventSource3D with EventManager3D.RegisterEventSource3D method
After that you only need to change the TargetModelNames on MultiModelEventSource3D and set it to the name of the selected object (you can also specify more objects with separating the names with ,; or space). After that the events will be triggered only on the objects whose names are specified in TargetModelNames.
With MultiModelEventSource3D it is very easy to change the selected objects. All you need to do is:
- first add object names to _eventManager.NamedObjects (you already do that).
- than register the MultiModelEventSource3D with EventManager3D.RegisterEventSource3D method
After that you only need to change the TargetModelNames on MultiModelEventSource3D and set it to the name of the selected object (you can also specify more objects with separating the names with ,; or space). After that the events will be triggered only on the objects whose names are specified in TargetModelNames.
Andrej Benedik

