#Is It Possible To Store Custom Structs In Unity's Collections ?

1 messages · Page 1 of 1 (latest)

deft field
#

Hello, I would like to store my own struct inside to the Unity's collections such as NativeList or NativeArray but it does not work. How can I solve this ?

wanton stratus
#

you can have them, but you can't bake them

#

just add them in runtime

#

or if you want component to be added in baking, but create collections in runtime - use that attribute the error suggests