I don’t understand why this is an issue? Please help me understand.
InvalidOperationException: The system TCC.ECS.Refactor.AuthoringRefactor.GraphSystem reads TCC.ECS.Refactor.AuthoringRefactor.ReferenceGraphDescriptorComponent via GraphSystem:GraphSystem_GraphInputRecorderComponent_UpdateData but that type was not assigned to the Dependency property. To ensure correct behavior of other systems, the job or a dependency must be assigned to the Dependency property before returning from the OnUpdate method.
var dept0 = Entities
.WithName($"GraphSystem_GraphInputRecorderComponent_UpdateData")
.ForEach((Entity e, ref GraphInputRecorderComponent gi, in ReferenceGraphDescriptorComponent d) =>
{
Debug.Log($"GraphSystem_GraphInputRecorderComponent_UpdateData");
var graphMaxCapacityX = GetComponent<GraphDescriptorComponent>(d.GraphDescriptorEntity).MaxCapacityX;
var graphMaxCapacityZ = GetComponent<GraphDescriptorComponent>(d.GraphDescriptorEntity).MaxCapacityZ;
float3 intersectPoint = float3.zero;
float3 px = new float3(0f, 0f, -500f);
float3 py = new float3(0f, 0f, graphMaxCapacityX*2);
float3 pz = new float3(graphMaxCapacityZ*4, 0f, -500f);
bool hit = RayIntersectionUtils.Intersect
(
graphInputData.PointerWorldPosition,
graphInputData.PointerCameraRayDirection,
px,
py,
pz,
ref intersectPoint
);
gi.Hit = hit;
gi.LatestInputRayHitPosition = intersectPoint;
}).Schedule(Dependency);