- Home /
Unity's ECS Tutorial no longer supports moveJob.Schedule(...
I'm following Unity's tutorial on ECS/Job System, published Jun 7th, part 3/5.
In the video, at around 9 minutes, they have the line,
moveHandle = moveJob.Schedule(transforms);
https://youtu.be/WZ6-LxwxWEI?t=564
moveJob does not contain .Schedule on my system.
Setup:
Unity Latest (2018.2.2f1) Scripting Runtime Version = .Net 4.x equivilant Entities 0.0.12-preview.4 Incremental Compiler 0.0.42-preview.18
Code:
namespace Ecs.Pure
{
using Unity.Jobs;
using UnityEngine;
using UnityEngine.Jobs;
[ComputeJobOptimization]
public class RotationJob : IJobParallelForTransform
{
public float deltaTime;
public float rotationSpeed;
public void Execute(int index, TransformAccess transform)
{
var rot = transform.rotation;
rot.y += deltaTime * rotationSpeed;
transform.rotation = rot;
}
}
}
and
namespace Ecs.Pure
{
using Unity.Jobs;
using UnityEngine;
using UnityEngine.Jobs;
public class GameManager : MonoBehaviour
{
TransformAccessArray transforms;
RotationJob rotationJob;
JobHandle rotationHandle;
void OnDisable()
{
rotationHandle.Complete();
transforms.Dispose();
}
private void Start()
{
transforms = new TransformAccessArray(0, -1);
}
private void Update()
{
rotationHandle.Complete();
rotationJob = new RotationJob()
{
deltaTime = Time.deltaTime,
rotationSpeed = 15f
};
// this is where I cannot continue. My Job does not have the ".Schedule(...)" method.
rotationHandle = rotationJob.
}
}
}
Any thoughts? Or a comment with a better Pure ECS tutorial?
Thanks.
Your answer
![](https://koobas.hobune.stream/wayback/20220612173040im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
[ECS] Create Entities from Job ( IJobForEachWithEntity) using an EntityCommandBuffer 1 Answer
Best way to get data from a Monobheaviour in a JobComponentSystem? 2 Answers
[ECS] DefaultWorldInitialization.Initialize take 50MB 1 Answer
Unity (ECS & DOTS) Entity Sinking 0 Answers
How to make singleplayer/multiplayer game with DOTS 0 Answers