#IN-51017. BakingOnlyChildren buffer is not converted into BakingOnlyEntity during prefabs baking.

1 messages · Page 1 of 1 (latest)

safe pumice
#

BakingOnlyEntityAuthoring places BakingOnlyEntity tag into object and BakingOnlyChildren dynamic buffer with list of all recursively obtained children. BakingOnlyEntityAuthoringBakingSystem system uses Entities.ForEach loop to iterate over BakingOnlyChildren buffer and assign BakingOnlyEntity to every child entity. Due to absence of WithEntityQueryOptions(EntityQueryOptions.IncludePrefab) flag prefabs are ignored by this system, and all child entities did not receive proper tag and as result did not removed from word as intended.

Possible solutions:

  • Add WithEntityQueryOptions(EntityQueryOptions.IncludePrefab) to the ForEach loop.
  • Remove BakingOnlyEntityAuthoringBakingSystem entirely and assign BakingOnlyEntity to every children directly in baker (anyway there is loop over all children there).
frank orchid