Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

EventTrigger OnPointerExit called on a UI Button

Discussion in 'UGUI & TextMesh Pro' started by TyI3orG, Nov 13, 2021.

  1. TyI3orG

    TyI3orG

    Joined:
    Mar 22, 2021
    Posts:
    15
    Hi I have a UI system that locks camera when EventTrigger OnPointerEnter of a ui image. When OnPointerExit it unlocks the camera, but I am having the issue with some of my buttons, causing OnPointerExit to be called when I don't want it to. The buttons are spawned at runtime and have the same elements as the buttons that aren't calling OnPointerExit. Any reason why that is?
     
  2. TyI3orG

    TyI3orG

    Joined:
    Mar 22, 2021
    Posts:
    15
    Screenshot33-34 Is the button that is calling OnPointerExit when i do not want it to.
    Screenshot 35 is the content object that holds them.
    Screenshot 36 is the hierarchy.
     

    Attached Files:

  3. TyI3orG

    TyI3orG

    Joined:
    Mar 22, 2021
    Posts:
    15
    These are the buttons that do not call OnPointerExit (working correctly)
     

    Attached Files:

  4. TyI3orG

    TyI3orG

    Joined:
    Mar 22, 2021
    Posts:
    15


    This is a video of what happens, Humanoid button is causing OnPointerExit when it is pressed and you move the mouse.