Cannot Set Blackboard Asset On FSMOwner

NodeCanvas Forums Support Cannot Set Blackboard Asset On FSMOwner

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #16265
    amanwhoisanode
    Participant

      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.

      #16286
      Gavalakis
      Keymaster

        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!

        #16290
        amanwhoisanode
        Participant

          I did try that, but sadly it’ll reset to ‘None’ when I play a scene :/

           

          #16303
          Gavalakis
          Keymaster

            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.

            #16307
            amanwhoisanode
            Participant

              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.

              #16309
              Gavalakis
              Keymaster

                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.

                 

                Attachments:
                You must be logged in to view attached files.
                #16312
                amanwhoisanode
                Participant

                  That fixed it thank you!!!

                Viewing 7 posts - 1 through 7 (of 7 total)
                • You must be logged in to reply to this topic.