Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

get active/focused InputField

Discussion in 'UGUI & TextMesh Pro' started by morgoth990, Aug 24, 2014.

  1. morgoth990

    morgoth990

    Joined:
    Jan 25, 2014
    Posts:
    4
  2. Melang

    Melang

    Joined:
    Mar 30, 2014
    Posts:
    166
    Code (csharp):
    1. using UnityEngine.EventSystems;
    Code (csharp):
    1. system = EventSystemManager.currentSystem;
    2. GameObject currentobj = system.currentSelectedObject;
     
    Tim-C likes this.
  3. janisrisa

    janisrisa

    Joined:
    Aug 10, 2021
    Posts:
    1
    updated.
    Code (csharp):
    1. EventSystem system = EventSystem.current;
    2. GameObject currentobj = system.currentSelectedGameObject;
     
  4. TheArtless

    TheArtless

    Joined:
    Feb 24, 2021
    Posts:
    14
    TMP_InputField.isFocused