- Home /
 
               Question by 
               autotron · Mar 05, 2017 at 03:26 PM · 
                c#uigameobjectpointerevent-handling  
              
 
              How do i get the child of an GameObject the pointer is hovering over?
 public virtual void OnPointerEnter(PointerEventData eventData)
 {
     GameObject hud = eventData.hovered.Where(obj => obj.name == "HUD").
          FirstOrDefault<GameObject>();
 }
This gives me the parent-Canvas for my HUD but I would need the child-Image over which the pointer is hovering.
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                