VTubeTiny
VTubeTiny copied to clipboard
Components under a "Publisher" will not get a published value
let's say we this stack of components
it should notify CharacterAnimatorComponent and SpeakingColorChangerComponent
but currently it will not notify SpeakingColorChangerComponent
Why does it do that?
most components will
Start
once, and that's when they are made
public override void Start()
{
_components = GetComponents<ISpeakingAwareComponent>(); //<---
//...
}
after that they will never update.
Solution
On new Component Update all previous components.
Potentential issues
A component might do a "Should only happen once" event twice