Value Change Broadcaster not firing?
-
Alright, I'm fucking lost. Can anyone make any sense of this?
Why is animatorButtonValue not firing?
const var buttonValueBc = Engine.createBroadcaster({ "id": "animatorButtonValue", "args": ["component", "value"] // this needs to match function arguments });
I'm attaching a component to it from inside a helper function that creates the component. I do the same for the Value Globalize broadcaster you see here, and it works. But animatorButtonValue doesn't fire.
buttonValueBc.attachToComponentValue(component, "-");
However, if I attach it outside the helper function i.e. inside
on init
after calling the function and creating the control, it works as expected. But I already have another value change that I'm attaching inside the helper function and it works! What gives?