protected sealed override void OnCreate() { base.OnCreate(); chunkDataMap = new NativeMultiHashMap <int, RenderData>(0, Allocator.TempJob); manager = EntityManager; defaultQueryDesc = new EntityQueryDesc() { All = AllDefaultQuery, None = AllNoneQuery }; specialQueryDesc = new EntityQueryDesc() { All = AllSpecialQuery, None = AllNoneQuery }; var shadowQD = new[] { ComponentType.ReadOnly <CastSpritesShadowComponentData>() }; defaultWithShadowsQueryDesc = new EntityQueryDesc() { All = AllDefaultQuery.Concat(shadowQD).ToArray(), None = AllNoneQuery }; specialWithShadowsQueryDesc = new EntityQueryDesc() { All = AllSpecialQuery.Concat(shadowQD).ToArray(), None = AllNoneQuery }; }
public InstancedRendererCollectorSystem() { Instance = this; UseAsDefault = true; allNoneQuery = new[] { ComponentType.ReadOnly <UseOnlyDynamicRendererTagComponentData>() }; allSpecialQuery = AllDefaultQuery .Concat( new[] { ComponentType.ReadOnly <UseOnlyInstancedRendererTagComponentData>() } ).ToArray(); }