– After Upgraded to latest NodeCanvas verison (3.2.5),Deserialization attempt failure happens very frequently Even if I Just modify my custom ActionTask code.
【Problem】
– I met this problem without any clue or logic , somtimes I just do some stuff on Inspector or just edit BTNode, or create a new custom ActionTask script
– Restart Unity Editor won’t help , I must discard the modification of the nodecanvas asset.
Can you please let me know what version you were using before?
Could you also please specify any steps for when this happens? For example, just by editing a node or inspector, it should really happen since deserializations is not even called at that time at all. Any additional details would really help (even sending the project to see what is going on to support_AT_paradoxnotion.com).
I found the cause of this problem, nodecanvas failed to serialize LayerMask filed with using LayerMask.NameToLayer() .
If I initialize a LayerMask filed in class like : LayerMask lm = 1 << LayerMask.NameToLayer(“a”) | 1 << LayerMask.NameToLayer(“b”),nodecanvas serialize it failed, because I can not find it in json file.
Maybe it’s not the new version problem, but it’s very hard to debug.