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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
Resolution Note:
The AI Planner is no longer being developed and will not release any further versions.