Welcome,
Guest
. Please
login
or
register
.
February 15, 2025, 11:06:45 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Wierd Exception in edit-time (NGUI v. 3.0.5)
« previous
next »
Print
Pages: [
1
]
Author
Topic: Wierd Exception in edit-time (NGUI v. 3.0.5) (Read 2391 times)
dkozlovtsev
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 35
Wierd Exception in edit-time (NGUI v. 3.0.5)
«
on:
November 22, 2013, 08:57:29 AM »
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?
Logged
dkozlovtsev
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 35
Re: Wierd Exception in edit-time (NGUI v. 3.0.5)
«
Reply #1 on:
November 22, 2013, 09:57:28 AM »
Oh it seems to be triggered by changin font size
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Wierd Exception in edit-time (NGUI v. 3.0.5)
«
Reply #2 on:
November 22, 2013, 03:52:59 PM »
I think it should be already resolved in 3.0.6, but I'll keep my eye out just in case.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Wierd Exception in edit-time (NGUI v. 3.0.5)