Steps to reproduce:
- Create a game object with a behavior agent component
- Create a behavior graph and assign it to the agent
- Open the behavior graph
- Add a "Log Variable" node
- Connect the "Log Variable" node to "OnStart"
- Set the variable to log to "Self"
- Save
- Undo
- Save
- Enter play mode
Actual results: "[Agent] Self = Agent (UnityEngine.GameObject)" is logged to the console
Expected results: "[Agent] <no name> = null" is logged to the console
Reproducible with versions:
1.0.9
Not reproducible with versions:
1.0.8
Tested on (OS): MacOS
Notes:
- The attached screen recording shows it the other way around, but it's the same issue
- You can open project settings and add BEHAVIOR_DEBUG_ASSET_IMPORT to Scripting Define Symbols (domain reload will happen) to verify if the graph rebuilds when saving (You should see "GraphAsset[{*}Behavior Graph{*}].BuildRuntimeGraph" in the log window)