So I’m working lately with ECS and encountred a challenge which is passing arrays inside a component, i’ve read somewhere that I can put non-blittable types on an ISharedComponentData but still, it’s not working.
And also when using a NativeArray I have the following UnityError:
ArgumentException: All component types containing pointers must use a [StructLayout(LayoutKind.Explicit, Size = <multiple of 8>)] attribute such that the type's size is the same on both 32-bit and 64-bit platforms. Type 'Unity.Collections.NativeArray`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' is missing a this attribute due to pointer field 'm_Buffer'