The following method causes this error
error SGIL: Failed to get IL name for parameter entities
private unsafe bool CheckEntitiesOutOfOrder(
ref SystemState state,
ArchetypeChunk chunk,
Entity* entities,
BufferAccessor<LinkedEntityGroup> linkedEntityGroupAccessor,
EntityStorageInfoLookup entityStorageInfoLookup,
ref ComponentTypeHandle<ChunkLinkedEntity> chunkOwnerHandle)
{
// We only need to look at the first entity as all linked entities will be in the correct chunk, but potentially out of order
var linkedEntityGroup = linkedEntityGroupAccessor[0].AsNativeArray().Reinterpret<Entity>();
foreach (var entity in linkedEntityGroup)
{
if (!state.EntityManager.HasComponent<ChunkGroupID>(entity)) // This line causes it
{
continue;
}
// .. rest of loop commented out
}
return false;
}```
It's called from main thread ISystem
Full source code here: https://gitlab.com/tertle/com.bovinelabs.core/-/blob/master/BovineLabs.Core.Extensions/Chunks/ChunkLinkOrderSystem.cs
Code is from my previous virtual chunk experiments but not in actual use right now, just updating API.
@slender falcon maybe?