I have two classes for example. NPC which inherits from BaseMobile.
I have a StopMoving function in NPC, which is reflected in a behaviour tree, but then I move it to BaseMobile (or vice versa).
When loading the behaviour tree, I get the following error spammed and almost locks up Unity completely. I’m not sure if it’s just a bug that’s allowing it to do that, but if not, perhaps some kind of catch so that it shows Empty Method similar to if the method was removed (or re-does the reflection, since the method was reflected via NPC and is still available after moving to BaseMobile since NPC inherits from it)
Hope that made sense… I’m not great at explaining, but thanks for your work on NodeCanvas, I’ve tried a few and this is definitely my best purchase on the asset store!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(22:08:41.8422)
Exception:
NullReferenceException:Objectreference not setto an instance of an object
I just tried reproducing this and didnt throw errors, but I am using a more latest version than 2.2 which is on the asset store, which I’m going to submit soon.
Would you mind opening up SerializedMethodInfo.cs and add this null check there under method “Get”?