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. Dismiss Notice

Text input field

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

  1. Vecna

    Vecna

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

    Vecna

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

    Vecna

    Joined:
    Apr 2, 2014
    Posts:
    31
    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