Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Text input field

Discussion in 'Project Tiny' started by Vecna, Jun 8, 2019.

  1. Vecna

    Vecna

    Joined:
    Apr 2, 2014
    Posts:
    32
    Anyone know how to create an input field?
     
  2. Vecna

    Vecna

    Joined:
    Apr 2, 2014
    Posts:
    32
    Last edited: Jun 8, 2019
  3. Vecna

    Vecna

    Joined:
    Apr 2, 2014
    Posts:
    32
    I can display it anywhere and on top like this but the only thing now is to translate it with the Unity's UI.

    Code (JavaScript):
    1.  input.style.zIndex = "1";
    2.                 input.style.position = "absolute";
    3.                 input.style.top = "200px";
    4.                 input.style.left = "200px";
    5.                 input.style.margin = '0px';
     
    Last edited: Jun 8, 2019