Author Topic: MissingReferenceException: The variable material of 'UIAtlas' doesn't exist  (Read 3597 times)

Bijou Trouvaille

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Hi,

I'm encountering this error when moving an atlas from an ngui 2.6.3 project to a brand new project containing nothing but ngui 3.0.2. When I select the prefab in the project view, the inspector goes blank, showing only a small black box in the corner. All 3 files, mat, png, and prefab are moved. I can send the atlas, if necessary.

  1. MissingReferenceException: The variable material of 'UIAtlas' doesn't exist anymore.
  2. You probably need to reassign the material variable of the 'UIAtlas' script in the inspector.
  3. UnityEngine.Material.get_mainTexture ()
  4. UIAtlas.Upgrade () (at Assets/NGUI/Scripts/UI/UIAtlas.cs:402)
  5. UIAtlas.GetSprite (System.String name) (at Assets/NGUI/Scripts/UI/UIAtlas.cs:217)
  6. UIAtlasInspector.OnInspectorGUI () (at Assets/NGUI/Scripts/Editor/UIAtlasInspector.cs:95)
  7. UnityEditor.InspectorWindow.DrawEditors (Boolean isRepaintEvent, UnityEditor.Editor[] editors, Boolean eyeDropperDirty)
  8. UnityEditor.DockArea:OnGUI()
  9.  
  10.  

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
This is exactly the same problem I'm having! http://www.tasharen.com/forum/index.php?topic=6301.0

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Two in one day! Interesting. I suggest upgrading in stages. First 2.6.3 -> 2.7.0, and only then 2.7.0 -> 3.0.2.