NodeCanvas Forums › Support › Cannot Set Blackboard Asset On FSMOwner
Hey all! I am having an issue where I cannot select a blackboard asset via the asset selector. I do in fact have several blackboard assets created. I am using Unity 2021.3.2f1. It does allow me to drag and drop, but will ‘forget’ the value set on play and reset back to none.
Hello there.
This is mostly an issue with Unity object selector in relation to Interface inspector fields (like IBlackboard there which is an interface). Unfortunately, the only way to assign the Asset Blackboard is to directly drag and drop the asset blackboard asset in the inspector field rather than using the unity object selector.
Please let me know if that works for you. Thanks!
I did try that, but sadly it’ll reset to ‘None’ when I play a scene :/
Hello again and sorry for the late reply?
Is by any chance your GraphOwner a Prefab Asset and the blackboard you try to assign one from the Scene?
Let me know. Thank you.
Yes, the graph owner is an enemy prefab and I am trying to assign a blackboard to it from the scene in which I have it placed.
Hmm. If you are trying to assign a Blackboard from the same scene, that the GraphOwner prefab Instance is in as well, there should not be any problem . If you were instead trying to assign a Blackboard from the scene, on a GraphOwner prefab Asset (not in the scene), then that will not work since prefab Assets can not have scene object references as usual in Unity.
With that said, I just fixed a potential issue with setting the graphowner prefab dirty and attached the fix for you here. Please import the fix and let me know if that works for you.
Thank you.
That fixed it thank you!!!