Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Gui cursor on device

Discussion in 'Immediate Mode GUI (IMGUI)' started by Sagnic, Jun 1, 2017.

  1. Sagnic


    Jun 1, 2017
    I have made a keyboard using unity ongui and GUI skin.My text is going to newline but cursor is not going to next line..We are using GUI.Label to draw text and using skin for GUIStyle.the word wrap property for used GUIstyle is set to true.We are creating our own cursor using GUI.Label..Same GUIStyle is used in cursor.The cursor x position is manualy according to length of text using CalcSize() of keyboard text.How can i know when the text on single line has ended so that i can update my cursor's y position accordingly..
    Last edited: Jun 5, 2017