#Running Job Progress
1 messages · Page 1 of 1 (latest)
If you turn off safety you could read a counter
You don't really care about the timing and safety
Cool. I should learn more about all the benefits to turning off safety. Seems a lot of good stuff can come from it if you're careful.
Can you turn it off on a job by job basis, or do you have to turn all of it off?
there are attributes to turn it off per container
Basically just pass in a float array of length 1 and attribute it with [NativeDisableContainerSafetyRestriction]
Then you can update the float whenever you want inside it and just read off it for progress.
Just be aware that if you want to write to it in parallel you'll need to use atomic operations or mutexes
Sick, thanks
(NativeReference is a tiny bit cleaner)
NativeReference in replacement of...a float array of length 1?
It's in essence an array of length 1