Another question: how to effectively serialize and deserialize object of type ObiNativeVector4List?
Direct serialization via BinaryFormatter does not work:
SerializationException: Type 'Obi.ObiNativeList`1[[UnityEngine.Vector4, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]' in Assembly 'Obi, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
But type
namespace Obi
{
[Serializable]
public class ObiNativeVector4List : ObiNativeList<Vector4>
{ ...
Direct serialization via BinaryFormatter does not work:
SerializationException: Type 'Obi.ObiNativeList`1[[UnityEngine.Vector4, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]' in Assembly 'Obi, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
But type
namespace Obi
{
[Serializable]
public class ObiNativeVector4List : ObiNativeList<Vector4>
{ ...