protected override JobHandle OnUpdate(JobHandle inputDependencies)
        {
            var job = new PostRotationEulerToPostRotation()
            {
                PostRotationType         = GetArchetypeChunkComponentType <PostRotation>(false),
                PostRotationEulerXYZType = GetArchetypeChunkComponentType <PostRotationEulerXYZ>(true),
                PostRotationEulerXZYType = GetArchetypeChunkComponentType <PostRotationEulerXZY>(true),
                PostRotationEulerYXZType = GetArchetypeChunkComponentType <PostRotationEulerYXZ>(true),
                PostRotationEulerYZXType = GetArchetypeChunkComponentType <PostRotationEulerYZX>(true),
                PostRotationEulerZXYType = GetArchetypeChunkComponentType <PostRotationEulerZXY>(true),
                PostRotationEulerZYXType = GetArchetypeChunkComponentType <PostRotationEulerZYX>(true),
                LastSystemVersion        = LastSystemVersion
            };

            return(job.Schedule(m_Group, inputDependencies));
        }
Example #2
0
        protected override JobHandle OnUpdate(JobHandle inputDependencies)
        {
            var job = new PostRotationEulerToPostRotation()
            {
                PostRotationTypeHandle         = GetComponentTypeHandle <PostRotation>(false),
                PostRotationEulerXyzTypeHandle = GetComponentTypeHandle <PostRotationEulerXYZ>(true),
                PostRotationEulerXzyTypeHandle = GetComponentTypeHandle <PostRotationEulerXZY>(true),
                PostRotationEulerYxzTypeHandle = GetComponentTypeHandle <PostRotationEulerYXZ>(true),
                PostRotationEulerYzxTypeHandle = GetComponentTypeHandle <PostRotationEulerYZX>(true),
                PostRotationEulerZxyTypeHandle = GetComponentTypeHandle <PostRotationEulerZXY>(true),
                PostRotationEulerZyxTypeHandle = GetComponentTypeHandle <PostRotationEulerZYX>(true),
                LastSystemVersion = LastSystemVersion
            };

            return(job.Schedule(m_Group, inputDependencies));
        }