Search Issue Tracker

Fixed

Fixed in 1.0.10

Votes

0

Found in [Package]

1.0.9

Issue ID

BEHAVB-292

Regression

Yes

Undo-Redo doesn't rebuild the graph asset if needed

Package: Unity Behavior

-

*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)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.