The following exception occasionally happening to me when i'm trying to change UILabel text and/or font in edit-time(custom localization), i'm using only public UILabel API and made no changes to it
MissingReferenceException: The object of type 'UILabel' has been destroyed but you are still trying to access it.
Your script should either check
if it
is null or you should not destroy the
object. UIWidget.MarkAsChanged () (at Assets/Packages/NGUI/Scripts/Internal/UIWidget.cs:531)
UILabel.MarkAsChanged () (at Assets/Packages/NGUI/Scripts/UI/UILabel.cs:787)
UnityEngine.Font.InvokeFontTextureRebuildCallback_Internal () (at C:/BuildAgent/work/7535de4ca26c26ac/Runtime/ExportGenerated/Editor/Graphics.cs:4543)
UnityEngine.Font:RequestCharactersInTexture(String, Int32, FontStyle)
NGUIText:WrapText(String, Font, Int32, FontStyle, Int32, Int32, Int32, Boolean, String&) (at Assets/Packages/NGUI/Scripts/Internal/NGUIText.cs:315)
UILabel:ProcessText(Boolean) (at Assets/Packages/NGUI/Scripts/UI/UILabel.cs:832)
UILabel:ProcessText() (at Assets/Packages/NGUI/Scripts/UI/UILabel.cs:794)
UILabel:ProcessAndRequest() (at Assets/Packages/NGUI/Scripts/UI/UILabel.cs:310)
UILabel:set_text(String) (at Assets/Packages/NGUI/Scripts/UI/UILabel.cs:231)
LabelLocalization:UpdateLocalization() (at Assets/Packages/NGUI/Scripts/Localization/LabelLocalization.cs:38)
LabelLocalization:OnValidate() (at Assets/Packages/NGUI/Scripts/Localization/LabelLocalization.cs:69)
UnityEditor.SerializedObject:ApplyModifiedProperties()
LabelLocalizationEditor:OnInspectorGUI() (at Assets/Packages/NGUI/Scripts/Localization/Editor/LabelLocalizationEditor.cs:22)
UnityEditor.DockArea:OnGUI()
Sometimes it messes up labels ( Until next update )
Any suggestions?