cocos-engine
cocos-engine copied to clipboard
Error after duplicating animation graph
Cocos Creator version
3.5.1
System information
Windows 11
Issue description
It seems that a “ghost” variable is staying in the serialized file of animation graph after a duplication and deleting a variable
Relevant error log output
Steps to reproduce
-
Create a animation graph with a trigger variable
-
Duplicate it
-
Delete the variable in the new animation graph, and create a new trigger variable
-
Try to use the newly created graph
Minimal reproduction project
No response
You need to remove the references of that variable as well. In later release 3.6.2 version, we're going to optimize this behavior.
Sorry,this optimization too late to catch up v3.6.2 , would be delay to v3.7 . On v3.7 when remove a variable ,if the variable is be used would pop a confirm warning dialog to user.