Welcome,
Guest
. Please
login
or
register
.
October 12, 2024, 01:19:00 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
NullReferenceException from NGUITransformInspector?
« previous
next »
Print
Pages: [
1
]
Author
Topic: NullReferenceException from NGUITransformInspector? (Read 5401 times)
vexe
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 153
NullReferenceException from NGUITransformInspector?
«
on:
February 13, 2014, 03:06:33 AM »
Been getting this error quite a lot recently even with the latest NGUI so I thought you should know about it.
NullReferenceException
:
(
null
)
UnityEditor
.
SerializedObject
..
ctor
(
UnityEngine
.
Object
[
]
objs
)
(
at C
:/
BuildAgent
/
work
/
d3d49558e4d408f4
/
artifacts
/
EditorGenerated
/
SerializedPropertyBindings
.
cs
:
69
)
UnityEditor
.
Editor
.
GetSerializedObjectInternal
(
)
(
at C
:/
BuildAgent
/
work
/
d3d49558e4d408f4
/
artifacts
/
EditorGenerated
/
EditorBindings
.
cs
:
117
)
UnityEditor
.
Editor
.
get_serializedObject
(
)
(
at C
:/
BuildAgent
/
work
/
d3d49558e4d408f4
/
artifacts
/
EditorGenerated
/
EditorBindings
.
cs
:
110
)
NGUITransformInspector
.
OnEnable
(
)
(
at Assets
/
External
/
NGUI
/
Scripts
/
Editor
/
NGUITransformInspector
.
cs
:
168
)
It happens during editor-time - My console gets blown with +999 errors.
There's also the same error for GameObjectInspector too - "Inspector/GameObjectInspector.cs:91"
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: NullReferenceException from NGUITransformInspector?
«
Reply #1 on:
February 13, 2014, 03:18:23 AM »
That points to 'serializedObject' being null, which shouldn't be possible. I suggest reporting it as a bug in Unity. I'm guessing you're on the latest 4.6 beta version? I've never seen it in the release.
Logged
vexe
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 153
Re: NullReferenceException from NGUITransformInspector?
«
Reply #2 on:
February 13, 2014, 03:23:17 AM »
No I'm using 4.3.3f1
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: NullReferenceException from NGUITransformInspector?
«
Reply #3 on:
February 13, 2014, 03:32:19 AM »
4.3.4 here. I think I went from 4.3.2 straight to 4.3.4.
Logged
vexe
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 153
Re: NullReferenceException from NGUITransformInspector?
«
Reply #4 on:
February 13, 2014, 03:33:36 AM »
I keep an eye close to the release notes. I didn't see anything worth updating to 4.3.4 so I just didn't do it. I'll update and let you know if I still get the error.
Logged
NaxIonz
Jr. Member
Thank You
-Given: 3
-Receive: 0
Posts: 70
Re: NullReferenceException from NGUITransformInspector?
«
Reply #5 on:
June 10, 2016, 03:39:53 PM »
Started getting this quite often once we updated to Unity 5 (never got it on 4.x.y)
Currently on 5.4.3p4
Logged
Ony
Newbie
Thank You
-Given: 2
-Receive: 0
Posts: 7
Re: NullReferenceException from NGUITransformInspector?
«
Reply #6 on:
July 07, 2016, 02:55:05 PM »
Yup, getting this now using v. 5.3.5
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: NullReferenceException from NGUITransformInspector?
«
Reply #7 on:
July 11, 2016, 01:13:44 AM »
Apparently Unity broke something on their end in the editor. You can just add a try/catch block to get rid of that error. NGUITransformInspector.OnEnable:
void
OnEnable
(
)
{
instance
=
this
;
if
(
this
)
{
try
{
var
so
=
serializedObject
;
mPos
=
so
.
FindProperty
(
"m_LocalPosition"
)
;
mRot
=
so
.
FindProperty
(
"m_LocalRotation"
)
;
mScale
=
so
.
FindProperty
(
"m_LocalScale"
)
;
}
catch
{
}
}
}
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
NullReferenceException from NGUITransformInspector?