这些定语的命名都很直白,顾名思义,不过,还是汇总一下吧
| 定语 | 修饰类型 | 功能 |
|---|---|---|
| [AlwaysUpdateSystem] | class | 总是更新系统 |
| [BurstCompile] | struct | Burst编译 |
| [ReadOnly] | NativeArray | 只读模式,速度更快 |
| [NativeDisableParallelForRestriction] | NativeArray | 原生禁用并行约束 |
| [DisallowMultipleComponent] | class | 禁用多组件,被修饰的组件在每个实体上只能有一个 |
| [DisableAutoCreation] | class | 禁用自动创建,系统在ECS中会自动创建,用这个定语禁用 |
| [UpdateInGroup] | class | 在某个系统组中更新,例:[UpdateInGroup(typeof(SimulationSystemGroup))] |
| [UpdateBefore] | class | 在某个系统组之前更新,例:[UpdateBefore(typeof(SimulationSystemGroup))] |
| [UpdateAfter] | class | 在某个系统组之后更新,例:[UpdateAfter(typeof(SimulationSystemGroup))] |
