Graph in Don’t destroy”, doesn’t see variables in other scenes”

Forums đź’¬ FlowCanvas ⚙️ Support Graph in Don’t destroy”, doesn’t see variables in other scenes”

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11986
    spayke
    Participant

      Hi,

      So I have “Main manager”(with Global var) that always inits first, and then stays always on with “Don’t Destroy on load”

      And all other scenes i load can see global variables in “MainManager”

      But “MainManager” can’t see global vars in other scenes.

      I tried “Validate()” in “MainManager” when new scene was loaded, but to no avail. I though “Validate()” will work, like “Re-Validate” in graph menu, but it didn’t

      What else I can do to solve this?

      #11989
      spayke
      Participant

        Maybe there is a way to kind of Re-Update variable links somehow in the “MainManager”?

        #11988
        Gavalakis
        Keymaster

          Hello and sorry for the late reply!

          Can you please clarify a bit regarding your setup? Do you mean that this “Main Manager” is a gameobject with a “Global Blackboard” component attached to it?

          Let me know. Thank you.

          #11987
          spayke
          Participant

            Hello, yes, “Main manager” is Global Blackboard, with checked “Don’t Destroy on load”, i have specific first scene that loads with this manager, and goes to the next scene(main menu). I pull variables from “Main manager”(global blackboard) from any scene and it works great.

            But when i try to do otherwise, from “Main manager” flowgraph itself, pull variables from another global variable in the scene, it doesn’t see them.
            For example when i enter new scene, i want to “Main Manager” to know in what scene we are. So in each scene i have “Scene”(global blackboard), with “This_scene” variable(it’s Scriptable object), but “Main manager” can’t pull that variable(even tho in pause i can see that global variables from popup menu), i tried to re-validate graph to make “Main manager” see them, didn’t work.
            I can just send signal to “Main manager”, which i am doing right now, but wanted to know if i can pull variables directly.

             

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