I want to set the variables of a BehaviorReference during runtime. I created a class that inherits from BehaviorReference and overrides the
GetExternalBehaviors function. However, I could not do the same for the variables.
What I want to do is to have fields shown in the UI that will later be converted to Variables. That is because it is easy to forget to set the needed variables otherwise. The image below shows what I want to do.

My attempt is to set the "variables" field directly:

where CreateSharedNameVariable is:

However, it does not work. The external tree does not recognize the values of these variables.
GetExternalBehaviors function. However, I could not do the same for the variables.
What I want to do is to have fields shown in the UI that will later be converted to Variables. That is because it is easy to forget to set the needed variables otherwise. The image below shows what I want to do.

My attempt is to set the "variables" field directly:

where CreateSharedNameVariable is:

However, it does not work. The external tree does not recognize the values of these variables.