Accessing variables & functions from C#

FlowCanvas Forums Support Accessing variables & functions from C#

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #444
    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

    #447
    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.

    Join us on Discord: https://discord.gg/97q2Rjh

    #452
    rixter757
    Participant

    First class, thanks very much for this.

    Rix

    #453
    Gavalakis
    Keymaster

    You are very welcome 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

    #454
    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 😉

    #456
    Gavalakis
    Keymaster

    Thank you very much Richard! I really appreciate it 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

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