public void BeginSetup(JobComponentSystem system
#if ENABLE_UNITY_COLLECTIONS_CHECKS
                               , AtomicSafetyHandle safetyHandle
#endif
                               )
        {
            GhostIdentifierFromEntity = system.GetComponentDataFromEntity <GhostIdentifier>(true);

#if ENABLE_UNITY_COLLECTIONS_CHECKS
            SafetyUtility.Replace(ref GhostIdentifierFromEntity, safetyHandle);
#endif
        }
 public static HierarchyRebuildContext Create(JobComponentSystem system)
 {
     return(new HierarchyRebuildContext()
     {
         ChildrenFromEntity = system.GetBufferFromEntity <Child>(true),
         WorldSpaceRectFromEntity = system.GetComponentDataFromEntity <WorldSpaceRect>(),
         RectTransformFromEntity = system.GetComponentDataFromEntity <RectTransform>(true),
         RebuildFlagFromEntity = system.GetComponentDataFromEntity <RebuildElementMeshFlag>(),
         ElementScaleFromEntity = system.GetComponentDataFromEntity <ElementScale>(),
         WorldSpaceMaskFromEntity = system.GetComponentDataFromEntity <WorldSpaceMask>(),
         RectMaskFromEntity = system.GetComponentDataFromEntity <RectMask>(true),
         DisabledFromEntity = system.GetComponentDataFromEntity <Disabled>(true),
         HierarchyIndexFromEntity = system.GetComponentDataFromEntity <ElementHierarchyIndex>(),
     });
 }