Hi,
by documentation I’m quite confused about the usage of ISharedComponent with burst.
if I filter entities in a Job using “WithSharedComponentFilter” and putting my data in a local variable before that, does it fully utilize burst? In addition, is there a easier method for accessing the ISharedComponent Data other than putting it in local variables?
MyISharedComponent iSharedData= MyISharedComponent;
Entities
.WithSharedComponentFilter(MyISharedComponent)
.ForEach((Entity entity, ref Translation translation) => {
var tmp = iSharedData.tmp;
//do stuff using
}).ScheduleParallel()
Thanks in advance!