So I'm using a Baker to bake a MonoBehaviour into an Entity component to place onto an Entity.
My IComponentData I am trying to add to my entity contains a struct I wrote called StaticsPayload.
Inside StaticsPayload is an array of another struct I wrote called Static.
Finally, Static is a struct that contains 4 int variables.
For some reason, when I try to use AddComponent during the baking process it complains
The type
MyStructTypemust be a non-nullable value type, along with all fields at any level of nesting
If I comment out StaticsPayload then this error goes away. If I go into StaticsPayload and change my array of Static variables to not be an array, this error goes away.
Is there some reason having a struct with an array of structs is causing this error to happen? I don't see anything about my structs that would cause a nullable value type at any level of nesting.
