Accessing variables & functions from C#

Forums 💬 FlowCanvas ⚙️ Support Accessing variables & functions from C#

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22858
    rixter757
    Participant

      Hi Nuv,

      I read the answer to this somewhere, but I can’t find it.

      I need to read/write to/from variables from C# that were created on the Blackboard.

      Also, is there a way to call a BT from C#? I have a button asset, and it needs to call a script. I need it to start a BT instead, so I could do both by writing a simple script to call the BT to start.

      Thanks,

      Rix

      #22863
      Gavalakis
      Keymaster

        Hey,

        Yes. you can use the Blackboard API to get/set variables through code. Here is a simple example of getting and setting a float variable:

        Regarding calling a BT from C#, if you mean starting/stopping a BT, yes of course 🙂 You can use the GraphOwner API for that. Here is an example:

        Let me know if this is what your asked or I misunderstood the questions 🙂

        Thanks.

        #22862
        rixter757
        Participant

          First class, thanks very much for this.

          Rix

          #22861
          Gavalakis
          Keymaster

            You are very welcome 🙂

            #22860
            rixter757
            Participant

              I finally got around to writing my review, prompted by the person who left a 3 star review. I was insulted for you 😉

              #22859
              Gavalakis
              Keymaster

                Thank you very much Richard! I really appreciate it 🙂

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