Topic: Adding event trigger to OnlineMapsMarker3D
We are trying to add a GvrPointerPhysicsRaycaster so that when the white dot comes over one of the OnlineMapsMarker3D it should trigger the tooltip. For that we have added GvrPointerPhysicsRaycaster to Main camera and then trying to add a collider and event trigger on every OnlineMapsMarker3D that is dynamically generated. However whenever we bring the white dot in front of the mater it does not turn into white circle (which will tell use that the event is triggered.) I am using following code, can you suggest what is the right way to add a event trigger to markers ?
//Load and instantiate the prefab
GameObject dynamicPrefab = Resources.Load (icon) as GameObject;
OnlineMapsMarker3D marker = map3d.AddMarker3D (new Vector2 (lng, lat), dynamicPrefab);
//Add colider
var boxCollider = dynamicPrefab.AddComponent<BoxCollider>();
//ADD EVENT TRIGGER
EventTrigger.Entry entry = new EventTrigger.Entry();
entry.eventID = EventTriggerType.PointerEnter;
entry.callback.AddListener((eventData) => { MyFunction(); });
dynamicPrefab.GetComponent<EventTrigger>().triggers.Add(entry);
PS tooltip comes when I bring mouse over it but not when the raycaster is over it.