protected override JobHandle OnUpdate(JobHandle inputDeps) { TextChunkBuilder chunkJob = new TextChunkBuilder() { TextEntities = GetArchetypeChunkEntityType(), TextBufferType = GetArchetypeChunkBufferType <TextData>(true), WorldSpaceRectType = GetArchetypeChunkComponentType <WorldSpaceRect>(true), ColorValueType = GetArchetypeChunkComponentType <VertexColorValue>(true), ColorMultiplierType = GetArchetypeChunkComponentType <VertexColorMultiplier>(true), TextRendererType = GetArchetypeChunkComponentType <TextRenderer>(true), VertexDataType = GetArchetypeChunkBufferType <ControlVertexData>(), IndexDataType = GetArchetypeChunkBufferType <ControlVertexIndex>(), RebuildElementMeshFlagArray = GetArchetypeChunkComponentType <RebuildElementMeshFlag>(), FontAssetFromEntity = GetComponentDataFromEntity <TextFontAsset>(true), FontGlyphDataFromEntity = GetBufferFromEntity <FontGlyphData>(true), ElementScaleType = GetArchetypeChunkComponentType <ElementScale>(true), WorldSpaceMaskType = GetArchetypeChunkComponentType <WorldSpaceMask>(true) }; //inputDeps = chunkJob.Schedule(chunkJob.TextEntities.Length, 1, inputDeps); inputDeps = chunkJob.Schedule(m_TextGroup, inputDeps); //} return(inputDeps); }
protected override JobHandle OnUpdate(JobHandle inputDeps) { inputDeps = new TextChunkBuilder() { TextDataType = GetArchetypeChunkComponentType <TextData>(true), LocalRectTransformType = GetArchetypeChunkComponentType <LocalRectTransform>(true), ColorValueType = GetArchetypeChunkComponentType <VertexColor>(true), ColorMultiplierType = GetArchetypeChunkComponentType <VertexColorMultiplier>(true), TextRendererType = GetArchetypeChunkComponentType <TextRenderer>(true), FontAssetFromEntity = GetComponentDataFromEntity <TextFontAsset>(true), FontGlyphFromEntity = GetBufferFromEntity <FontGlyph>(true), LocalToWorldType = GetArchetypeChunkComponentType <LocalToWorld>(true), VertexType = GetArchetypeChunkBufferType <Vertex>(false), VertexIndexType = GetArchetypeChunkBufferType <VertexIndex>(false), TextLineType = GetArchetypeChunkBufferType <TextLine>(false), LastSystemVersion = LastSystemVersion }.Schedule(m_textQuery, inputDeps); return(inputDeps); }