Make the Node format more merge-friendly.

Issue #301 open
Bjarke Elias created an issue

Posted by vzlomvl on the Unity forums:

I have class TreeData:

public class TreeData : ScriptableObject, ISerializationCallbackReceiver

   [SerializeField, HideInInspector]
   private SerializationData serializationData;

   private List<ActionNode> nodes = new List<ActionNode>();

   void ISerializationCallbackReceiver.OnBeforeSerialize()
      UnitySerializationUtility.SerializeUnityObject(this, ref serializationData);

   void ISerializationCallbackReceiver.OnAfterDeserialize()
       UnitySerializationUtility.DeserializeUnityObject(this, ref serializationData);

The average size of nodes array in project is 250-300 elements. If I add in existing tree a new element I get 250 changes of ID. This makes it unreadable changes in commit. For example in Source Tree its look like with:




Comments (3)

  1. Log in to comment