Thanks for your fast reply,
I tried, but unfortunately i can not reproduce it. Maybe it happened because i copied a task with a shared variable. I also tried to export it with json serialization and got the following json string:
JSONSerialization:
'{"Variables":[{"Type":"BehaviorDesigner.Runtime.SharedGameObject","Name":"Enemy","IsShared":true,"IsDynamic":true},{"Type":"BehaviorDesigner.Runtime.SharedGameObject","Name":"EnemyGameObject","IsShared":true},{"Type":"BehaviorDesigner.Runtime.SharedGameObject","Name":"DestinationObjectVar","IsShared":true,"GameObjectmValue":0},{"Type":"BehaviorDesigner.Runtime.SharedObject","Name":"PickableVar","IsShared":true},{"Type":"BehaviorDesigner.Runtime.SharedBool","Name":"EdibleVar","IsShared":true,"BooleanmValue":false},{"Type":"BehaviorDesigner.Runtime.SharedGameObject","Name":"CreatureGameObject","IsShared":true},{"Type":"BehaviorDesigner.Runtime.SharedGameObject","Name":"SelfVar","IsShared":true,"GameObjectmValue":1},{"Type":"BehaviorDesigner.Runtime.SharedFloat","Name":"MatingSatisfaction","IsShared":true,"SinglemValue":0},{"Type":"BehaviorDesigner.Runtime.SharedVector3","Name":"DestinationPositionVar","IsShared":true,"Vector3mValue":"(0,0,0)"},{"Type":"BehaviorDesigner.Runtime.SharedBool","Name":"attackedBranch","IsShared":true,"IsDynamic":true,"BooleanmValue":false},{"Type":"BehaviorDesigner.Runtime.SharedBool","Name":"attackedBranch","IsShared":true,"IsDynamic":true,"BooleanmValue":false}]}'
as you can see, there are two "attackedBranch"-Variables. Maybe that caused the problem.
But if i'm right, there is no chance to get the BT back, because the variables are the only thing that got serialized.
Maybe it's possible to catch this error at some point, because it's not that nice to lose a whole behavior tree because of serialization problems.
Luckily my behavior tree was not that big yet.
I also have the feeling, that the shared variable system within the BT doesn't work that well. I often have null values stored in them. Or maybe I'm just doing something wrong there...
But apart from that, nice work and support!