Hiding script attributes
Feature request.
Allow hiding / showing script attributes, based on another attribute of the same script. This is a same feature currently implemented in Editor, but allow public use:
this._field('preWarm').parent.hidden = !this._field('loop').value;
Perhaps, a script attribute can contain an optional field that would read a value as a boolean from another field and toggle its visibility based on it.
Feels like a case for an Editor Plugin.
Right, but until we have a channel for distributing the user plugins, feature requests are the only option, I suppose.
Forum mention: https://forum.playcanvas.com/t/can-we-change-de-script-attributes-by-the-type-of-an-enum/25865/2
For reference, we've got a proposal for this here https://github.com/playcanvas/editor/issues/1196