- ALINE version: 1.7.6
- Unity version: v2022.3.37
- Render pipeline: HDRP
The green line has an exeption. Says the Builder doesn’t exist. How can that happen if I’m getting it inside the method?. Builder will be disposed after Dependency. Maybe I’m doing something wrong…
Hi
You are disposing the builder before the job has finished. It should be builder.DisposeAfter(handle)
.
Also. Your PushColor/PopColor calls will not affect anything. They only affect the same thread. So you need to do it in your ForEach call.
… you’re right. Wrong handle. My bad.
But the push pop… is that mentioned inside the docs? I would appreciate to have it there! So it doesn’t really matter. I would just pass the color directly in that case. It’s just one line.
It’s a consequence of jobs being multithreaded. Each thread essentially has its own builder, including the main thread.
But you are right, I could clarify that.