标签:upd 方式 特殊 自己的 ado transform nbsp 显示 fine
public struct W : IComponentData { public int Value; } [WriteGroup(typeof(W))] public struct A : IComponentData { public int Value; } [WriteGroup(typeof(W))] public struct B : IComponentData { public int Value; }
public class AddingSystem : JobComponentSystem { protected override JobHandle OnUpdate(JobHandle inputDeps) { return Entities .WithEntityQueryOptions(EntityQueryOptions.FilterWriteGroup) .ForEach((ref W w, in B b) => { }).Schedule(inputDeps);} }
public class AddingSystem : JobComponentSystem { private EntityQuery m_Query; protected override void OnCreate() { var queryDescription = new EntityQueryDesc { All = new ComponentType[] { ComponentType.ReadWrite<W>(), ComponentType.ReadOnly<B>() }, Options = EntityQueryOptions.FilterWriteGroup }; m_Query = GetEntityQuery(queryDescription); } // Define Job and schedule... }
标签:upd 方式 特殊 自己的 ado transform nbsp 显示 fine
原文地址:https://www.cnblogs.com/sifenkesi/p/12386453.html