I am attempting to use a custom observable to animate a TextBlock’s alpha value to 0. The goal is to make it transparent after receiving a message from an external library.
I have a playground here that accomplishes the fade out with onBeforeRenderObservable, but this is the textbook example with
scene.onBeforeRenderObservable.add(...) and it doesn’t require any notification.
In the documentation, the socket.io example does not appear to work if used as-is, because
notifyObservers() requires a number of arguments that are not explained in the docs, and I’m struggling to understand how to use it from the Typedocs as well:
Does anyone have a working example of a custom observable that starts after receiving an event from an external library? Docs seem pretty sparse on this one and I believe I’ve used every Google query known to man with little to show for it.