From the documentation
“Accessing static data from a job circumvents all safety systems. If you access the wrong data, you might crash Unity, often in unexpected ways.”
So I am wondering, does that mean that you cannot use static data INSIDE the job, but still use it on the OnUpdate method? I do not see how this would be a problem, but I really want to make sure before continuing with my project
Thank youuuuuuuu
ps:
// OnUpdate runs on the main thread.
protected override JobHandle OnUpdate(JobHandle inputDependencies)
I am worry about “static restrict” too.
At first glance it seems good to limited developer to only access immutable static data in job.
But in practice, the ability to access “any” kind of data is very helpful in multi-thread program, and it also safe as long as developer initialize static data in its static constructor and never change it.