#Can't bake prefab entities to FixedListX collections.

1 messages · Page 1 of 1 (latest)

sage spindle
#

I'm not sure if this is a feature that you want to support but it is pretty convenient to not have to use dynamic buffers. Also small feature request but Unity collections should have a FixedArrayX that operates like FixedListX but doesn't have a size/add just array access.

grim pollen
#

You can't use any containers in entity baking (they don't get serialized)

red niche
#

A fixed list probably works fine baking. But yes I doubt remapping works for them

sage spindle
#

A fixed array is not really a container.

red niche
#

Typemanager needs explicit offsets to be able to remap

#

A fixed list on a non singleton is really going to devastate your chunk size though

sage spindle
#

Why wouldn't a fixed array have an explicit offsets?

red niche
#

Search all structs with entity fields via reflection

#

The fixed list is just a collection of byte fields that are reinterpreted to T when requested

blissful quiver
#

would it know how to remap a real fixed array instead of FixedListX, e.g. unsafe struct Foo { fixed Entity entities[5]; } ?

red niche
#

ahhhhhhhhh good question though i'm doubtful

#

but only one way to find out

blissful quiver
#

ever doubtful

#

but in this case that code doesn't even compile so completely valid doubts

red niche
#

oh yeah haha

#

that annoying limitation

thin dome
#

🤔 Actually wat's the use case for FixedList when u ady have dynamic buffer?

blissful quiver
#

arrays of arrays