Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Bijou Trouvaille on October 20, 2013, 10:57:56 PM

Title: MissingReferenceException: The variable material of 'UIAtlas' doesn't exist
Post by: Bijou Trouvaille on October 20, 2013, 10:57:56 PM
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.  
Title: Re: MissingReferenceException: The variable material of 'UIAtlas' doesn't exist
Post by: vexe on October 21, 2013, 03:05:23 AM
This is exactly the same problem I'm having! http://www.tasharen.com/forum/index.php?topic=6301.0
Title: Re: MissingReferenceException: The variable material of 'UIAtlas' doesn't exist
Post by: ArenMook on October 21, 2013, 01:18:12 PM
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.