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

[NullReferenceException] only ui Scene

Discussion in 'UGUI & TextMesh Pro' started by jack-fang, Nov 28, 2014.

  1. jack-fang

    jack-fang

    Joined:
    May 10, 2013
    Posts:
    17
    What Happenes...I just operate the UI.throw a Exception。。。
     

    Attached Files:

  2. jack-fang

    jack-fang

    Joined:
    May 10, 2013
    Posts:
    17
    sorry , Here is the log
    NullReferenceException
    UnityEngine.UI.Text.GetGenerationSettings (Vector2 extents)
    UnityEngine.UI.Text.get_preferredWidth ()
    UnityEditor.Events.LayoutPropertiesPreview.<OnPreviewGUI>b__2 (ILayoutElement e)
    UnityEngine.UI.LayoutUtility.GetLayoutProperty (UnityEngine.RectTransform rect, System.Func`2 property, Single defaultValue, ILayoutElement& source)
    UnityEditor.Events.LayoutPropertiesPreview.OnPreviewGUI (Rect r, UnityEngine.GUIStyle background)
    UnityEditor.ObjectPreview.OnInteractivePreviewGUI (Rect r, UnityEngine.GUIStyle background)
     
  3. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,181
    Please raise a bug so we can track / fix this.
     
  4. edwebb

    edwebb

    Joined:
    Nov 15, 2013
    Posts:
    2
    Did this already get logged and fixed? I can't see it in the IssuesTracker. It happens for me on 4.6.0f3