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.

Question Problem to Import methods the EventSystems

Discussion in 'UGUI & TextMesh Pro' started by LucasEnvironment, Nov 20, 2022.

  1. LucasEnvironment

    LucasEnvironment

    Joined:
    Mar 2, 2021
    Posts:
    58
    I'm having an annoying issue with UnityEngine.UI on Unity Version: 2020.3.19. It seems that some files were not imported correctly in my project, the problem is that I add the UnityEngine.EventSystems library; and I can't use GetComponent<EventSystem>()currentSelectedGameObject;.

    I already tried many things, like removing the Unity UI package from Package Manager and adding it again, I tried to create a new project in the same version and add my game assets, I tried to change the version directly, with "switch". But if I create an empty project I can use all EventSystems functions, I don't understand what is happening.
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    8,909
    There's a dedicated forum for this feature, I'll move your post for you.
     
    LucasEnvironment likes this.
  3. LucasEnvironment

    LucasEnvironment

    Joined:
    Mar 2, 2021
    Posts:
    58
    Ok thanks!