Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
2021.2.0b6
2021.2.7f1
2022.1
Issue ID
1396673
Regression
Yes
Error CS0843 thrown when adding Unity AI package
Reproduction steps:
1. Open the user's attached project "AIPlanner.zip"
2. Observe the Console window
Expected result: No error in the Console window
Actual result: An error is thrown: Library\PackageCache\com.unity.ai.planner@0.3.0-preview.3\Runtime\Traits\ActionKey.cs(162,16): error CS0843: Auto-implemented property 'ActionKey.ActionGuid' must be fully assigned before control is returned to the caller.
Reproducible with: 0.2.4-preview.3, 0.3.0-preview.3 (2021.2.0b6, 2021.2.9f1, 2022.1.0b5)
Not reproducible with: 0.2.4-preview.3, 0.3.0-preview.3 (2019.4.35f1, 2020.3.27f1, 2021.2.0b5)
Could not test: 2022.2.0a3 (Getting Library/PackageCache/com.unity.jobs@0.7.0-preview.17/Unity.Jobs/IJobParallelForDefer.cs(77,85): error CS8377: The type 'U' must be a non-nullable value type, along with all fields at any level of nesting, in order to use it as parameter 'T' in the generic type or method 'NativeList<T>' after adding the package)
Workaround: Adding "ActionGuid = default;" to the end of the ActionKey(int length) method in ActionKey.cs
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
The AI Planner is no longer being developed and will not release any further versions.