Search Unity

Bug UIElements Not able to handle all PointerEvents on Instantiation

Discussion in 'UGUI & TextMesh Pro' started by IsaacSybrandy, Jul 7, 2021.

  1. IsaacSybrandy

    IsaacSybrandy

    Joined:
    Jan 14, 2021
    Posts:
    1
    Whenever I Instantiate A UIElement Prefab/Object into my game, i cannot seem to make it selectable by mouse click/press, only by navigation.
    It seems to not be able to handle any Pointer Events whatsoever. IPointerEnter doesnt work, neither does exit, down, click, or up. This issue persists for both a cloned prefab and a cloned object from the scene.
    These issues do not exist for the original objects, only when they are Instantiated.

    The Video
    Here is showing the issue. you can quite obviously hear my mouse click not work and then the navigation from arrow keys work.

    I am Instantiating a clone of the first RawImage in the canvas, and that is selectable by pointer, why isnt the clone?

    I am using a Custom InputModule, but I ruled that out because i tested it with StandaloneInputModule and it still doesnt work.

    I ruled out it being the EventSystem in DoNotDestroyOnLoad as I tested it with the EventSystem in the main scene and the same issue arises.
     
    Last edited: Jul 7, 2021