Search Issue Tracker
Fixed in preview.1 - 0.2.3
Votes
0
Found in [Package]
preview.1 - 0.2.2
Issue ID
1231111
Regression
No
AIPlanner: Termination rewards generate incorrect code
How to reproduce:
1. Open tester-attached project (VacuumRobot.zip)
2. See AI.Planner/Terminations/Stop.asset and AI.Planner/Plans/Clean.asset
3. Generate Assemblies via AI > Planner > Generate Assemblies
Expected result: assemblies are generated without any errors
Actual result: assembly generation fails with 3 errors
Reproducible with: 2019.3.7f1, 2020.1.0b4, 2020.2.0a5
Could not test with: 2017.4.38f1(package unavailable), 2018.4.20f1(affected package version unavailable)
Reproducible with package versions: preview.2 - 0.2.1, preview.1 - 0.2.2
Could not test with package versions: preview - 0.1.1(package incompatible), preview.4 - 0.2.0(package could not be downloaded)
Notes:
The following errors are thrown:
Temp/PlannerAssembly/AI.Planner.Domains/Stop.cs(50,87): error CS0103: The name 'originalState' does not exist in the current context
UnityEditor.AI.Planner.CodeGen.PlannerAssemblyBuilder:Build () (at Library/PackageCache/com.unity.ai.planner@0.2.2-preview.1/Editor/CodeGen/PlannerAssemblyBuilder.cs:102)
Temp/PlannerAssembly/AI.Planner.Domains/Stop.cs(50,102): error CS0103: The name 'action' does not exist in the current context
UnityEditor.AI.Planner.CodeGen.PlannerAssemblyBuilder:Build () (at Library/PackageCache/com.unity.ai.planner@0.2.2-preview.1/Editor/CodeGen/PlannerAssemblyBuilder.cs:102)
Temp/PlannerAssembly/AI.Planner.Domains/Stop.cs(50,110): error CS0103: The name 'newState' does not exist in the current context
UnityEditor.AI.Planner.CodeGen.PlannerAssemblyBuilder:Build () (at Library/PackageCache/com.unity.ai.planner@0.2.2-preview.1/Editor/CodeGen/PlannerAssemblyBuilder.cs:102)
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (fix version preview.1 - 0.2.3):
Termination generated code was fixed.