This demo seems broken in latest PG, as well as 4.2.1. I know it was working sometime ago. Any idea why it’s not working now, or whether it will work in Babylon.js 6.0 ? Is the snippet server broken?
We implemented gradients in GUI controls a few months ago, and the internal variable is named _gradient
in GUI.Control
. The PG creates a new control class subclassing GUI.Control
and creates a _gradient
variable, which overwrites our own variable. Renaming the variable is a simple solution:
Note that this could not work before version 5.0 because loading a GUI snippet from the GUI editor was added in version 5.0.
3 Likes