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
- ResolveUsePasses now extracts passes from all subshaders including fallbacks, in contrast to documented behaviour
- [UIBuilder] Changes aren't detected on types implementing IList
- [HDRP] Text is rendered with artefacts when using STP and resolution scale is set a float value
- [Settings Search] Search results not always matching search term correctly
- Crash on memcpy when opening a project that loads TSS files
Resolution Note:
The AI Planner is no longer being developed and will not release any further versions.