Hello, I’m encountering a bug when duplicating blackboards. How to reproduce:
- Duplicate a blackboard with existing variables and rename it
(Note that at this point, the asset inside the blackboard asset still has the old name)
- Open the new blackboard, delete all the old variables
- Close the blackboard and watch the asset inside the asset being renamed
- Open again and create a new variable, float for example and change the value to something other than 0, close.
Expected behavior:
When using the blackboard asset in the playgraph, the number will be what you put in
What’s happening:
The value of the blackboard asset when opening, is different from the value displayed in the runtime blackboard asset. (print below)
Hi @CanvasDEV ,
Thank you for the report and sorry for the issue!
Just to confirm:
- The issue is the runtime value is not being updated correctly with the authoring value?
- Are you renaming the duplicated blackboard asset or the variable inside of it?
- Is the duplication required for the repro steps then?
- Is the deletion of the old variables required for the repro?
Thank you!
Oh, another piece I forgot: Does the issue still remain when you enter play mode? It could be we’re delaying updating the runtime asset due to serialization costs until certain points
Sorry for the delay, @ShaneeNishry
I did more tests here:
- I created a blockboard asset from the asset menu, it worked normally
- Duplicated the new blockboard, without deleting the old variables, worked normally
- I placed the new blackboard in a playergraph, and edited the value through the direct field of the playergraph, without opening the authoring, it didn’t work this time.
Then I realized that it’s not about duplicating, but about saving inside the playergraph, here’s a more informative print:
So answering your questions:
- Yes
- blackboard asset
- No
- No
- Yes