editor icon indicating copy to clipboard operation
editor copied to clipboard

Hiding script attributes

Open LeXXik opened this issue 4 years ago • 4 comments

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.

LeXXik avatar Jan 13 '21 11:01 LeXXik

Feels like a case for an Editor Plugin.

Maksims avatar Jan 13 '21 13:01 Maksims

Right, but until we have a channel for distributing the user plugins, feature requests are the only option, I suppose.

LeXXik avatar Jan 14 '21 10:01 LeXXik

Forum mention: https://forum.playcanvas.com/t/can-we-change-de-script-attributes-by-the-type-of-an-enum/25865/2

LeXXik avatar May 24 '22 18:05 LeXXik

For reference, we've got a proposal for this here https://github.com/playcanvas/editor/issues/1196

marklundin avatar Oct 10 '24 07:10 marklundin