Unity Issue Tracker - Deferred Job arrays don't work when cast to a NativeSlice
Closed
ECSB-126
Deferred Job arrays don't work when cast to a NativeSlice
Package: Unity Native Collections
Won't Fix
1.4.X
This issue should already be resolved and cannot be reproduced.
https://github.cds.internal.unity3d.com/unity/unity/commit/d94404f5d0d8806216349f87138790d338cb01a8
Reproduction steps:
1. Open the attached project "Deferred_NativeSlice_Bug"
2. Enter Play mode
3. Observe the Console log
4. Open EntryPoint.cs
5. Comment line 79 and uncomment line 80
6. Enter Play mode
7. Observe the Console log
Expected result: "Worker job operated on 5 elements." is logged at both steps 3 and 7
Actual result: "Worker job operated on 0 elements." is logged at step 7
Reproducible with: 1.4.0 (2020.3.42f1, 2021.3.14f1, 2022.1.23f1, 2022.2.0b16, 2023.1.0a20)
Could not test with: 2.1.0-exp.4, 2.1.0-pre.2 (2022.2.0.b16) (Package compilation errors)
Reproducible on: macOS 12.4 (Intel)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?