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
- Create Node Menu is not closing and “NullReferenceException: Object reference not set to an instance of an object” error is thrown when Shader Graph window is closed
- Assert error is thrown when the Editor language is set to one of the experimental ones in an HDRP project
- A BatchDrawCommand is using a pass from the shader “Universal Render Pipeline/Particles/Lit” that is not SRP Batcher compatible
- The Scene does not get rendered in the Player when MSAA is enabled and more than one Camera is used
- Crash on mono_object_get_class when generating Font Atlas of a specific font file
Resolution Note:
The AI Planner is no longer being developed and will not release any further versions.