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

InputField with bitmap font: no caret? (rc2)

Discussion in 'UGUI & TextMesh Pro' started by rakkarage, Nov 16, 2014.

  1. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
    has anyone tried a InputField with a bitmap font?
    no caret? :(
    thanks
     
  2. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    Hmm the system shouldn't care about the type of font used. Could you submit a bug.
     
  3. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
  4. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,066
    Assuming the font that you're using includes a caret character?
     
  5. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
    ascii 124: "|"? yep. is that how it is done? idk
     
  6. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
    still no caret for bitmap fonts
    hard to edit text
    thanks
    :(
     
  7. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,066
    Are you sure you're using the word "Caret" correctly? Shift-6 right?

    Or are you talking about something else?
     
  8. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,066
    I think maybe you're talking about the "Cursor"?
     
  9. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,066
    Oh! Actually you're right! It is referred to as a caret as well. Never knew that. Okay - ignore me. I assumed you meant there was no caret (i.e. Shift-6 "^") in your font.
     
  10. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
    ah ya maybe cursor is a better word choice since ^ is caret too :)
     

    Attached Files:

  11. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,066
    Apparently "Text Cursor" or "Caret Navigation" are the common terms for it. Been in IT for 20 years and always called it a "Cursor". I guess you learn something new every day :)
     
  12. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    I havn't looking into this bug yet :(. BUt we manually draw the caret (i.e. we dont use the '|' character are out caret) so i'm really not sure what would be going wrong.
     
  13. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
    6 months and many versions later... still no caret for custom bitmap fonts :(
     
  14. iivo_k

    iivo_k

    Joined:
    Jan 28, 2013
    Posts:
    314
    I noticed that if the reference resolution in a canvas scaler is something large (like 2500*1400 or something) and the actual screen is somewhat small, the caret is not visible. Putting the InputField to another canvas with smaller reference resolution of 800*600 helped.
     
  15. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
    thanks

    but ya i can replicate this with the default settings in a new scene in 3 steps

    1. create new scene
    2. create new InputField
    - run to see caret when edit text
    3. change to bitmap font
    - no caret

    does this work for anyone?
    i am the first to attempt bitmap input since 4.6?
    or my font is broke?

    thanks
     
  16. LoneSurvivor82

    LoneSurvivor82

    Joined:
    Aug 17, 2019
    Posts:
    41
    I have the same problem like you. I created a custom font and don't have a cursor if it's selected in the input field. :(