using Unity.Entities;
using Unity.Mathematics;
using System;
[GenerateAuthoringComponent]
[Serializable]
public struct MyElement : IBufferElementData
{
public half value;
}
When the authoring component is attached to GameObject, List doesn’t show up in the inspector (which is the correct behaviour I guess, maybe not for math types though).
Converting the object results in the following:
Unity.Entities.Hybrid.BufferElementAuthoring`2[TBufferElementData,TWrappedValue].Convert (Unity.Entities.Entity entity, Unity.Entities.EntityManager destinationManager, GameObjectConversionSystem _) (at Library/PackageCache/com.unity.entities@0.8.0-preview.8/Unity.Entities.Hybrid/BufferElementDataAuthoringComponent.cs:20)```
Which is happening due to the List<MyElement> being null because it was not set in the inspector as far as I can tell.