Reply To: [Question] Bind to components that are added at runtime.

NodeCanvas Forums Support [Question] Bind to components that are added at runtime. Reply To: [Question] Bind to components that are added at runtime.

#15318
monotonic
Participant

Hi,

Yes exactly. Sorry, I’ve just realised the possible source of misunderstanding here. When I said Behaviour Designer, I was referring to the editor for the BT’s within NodeCanvas.

Essentially, when I add a component class to the Preferred Types in NodeCanvas, then from within the BT blackboard add a variable binding to a property on this component, when the target agent doesn’t have that component, it works fine. However, in FlowCanvas when I do the same, I get a warning at design time stating that the agent does not have that component.

Steps to Reproduce (FlowCanvas):

  1. Add a FlowCanvas owner to a game object.
  2. Add any old component to the Preferred Types which is not already in this list and is not attached to the game object above.
  3. Add a blackboard variable and bind this variable to a property on the above component, using the ‘Bind Self’ option.