Search Unity

UI.Text Font=null leads to NullReferenceException

Discussion in 'Editor & General Support' started by Hullabu, Dec 14, 2016.

  1. Hullabu

    Hullabu

    Joined:
    Oct 23, 2014
    Posts:
    18
    Creating the UI.Text component without font (delete font after creating, i.e. Font=null) leads to "NullReferenceException" errors.
    1. Reproduce: Create->UI->Text
    2. Click to Font field
    3. Press Delete
    Or select None in the font selector window.

    Bug number 861348.
     
  2. SaraCecilia

    SaraCecilia

    Joined:
    Jul 9, 2014
    Posts:
    675
    Hi, this has been fixed in 5.6. A backport for 5.5 has been requested.
     
    Last edited: Dec 14, 2016