Correct way to mark a variable as output?

NodeCanvas Forums General Discussion Correct way to mark a variable as output?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9321

    Sorry for all the questions… just want to make sure I am doing the right thing.

    So coming from playmaker whenever I wanted to mark a variable as being an output of the action I would use [UIHint(UIHint.Variable)] however I am not quite sure what the practice is here, as I have looked in the actions in the source code and some seem to use [BlackboardOnly] attribute and others seem to set properties on the BB[Type] such as blackboardOnly = true or useBlackboard = true, so is there a correct convention?

    I assume the multiple properties are for you to imply if it should be a blackboard var or a dynamic var etc, however I could not find the specifics around this in the documentation.

    #9322
    Gavalakis
    Keymaster

    Hello,

    Dont worry about the questions..That’s what the forums is for 🙂

    The correct way after version 1.5.3 is to use [BlackboardOnly]
    Prior to 1.5.3 the way was to initialize the BBVariable with {blackboardOnly = true}. I just have’t changed all actions to the new way.

    The useBlackboard is different. It is whether or not the BBVariable ‘currently’ is set to use the blackbaord (radio button pressed)
    I just initialize some of them to start with that button pressed for convenience, that’s all.

    So, to recap, the way it’s [BlackboardOnly] attribute 🙂

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

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