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
- [VFX Graph] ArcCone Direction computation is wrong in Base Mode
- [Android] [Galaxy Tab] A singular Pen touch logs a Pen touch event and a singular finger touch event when logged using "VisualElement.RegisterCallback" with "Pointer(Up/Down)Event"
- Crash on D3D12DescriptorCache::Deallocate or vkGetInstanceProcAddr when loading RenderDoc in a specific Scene
- [HDRP] Lit material preview is rendered incorrectly with a mask map
- The "LerpWhiteTo" missing function displays an error when the Shadows.hlsl shader is included in a Shader file
Resolution Note:
The AI Planner is no longer being developed and will not release any further versions.