Description/comment attribute

Hey guys i was wondering if there is any way to make informational attribute in my editor

image

SOMETHING LIKE THIS

Hi @smokys,

No you can’t have permanently rendered labels on top of fields, only the mouse hover description:

MyScript.attributes.add('speed', {
    type: 'number',
    default: 80,
    title: 'Speed',
    description: 'A description for this attribute.'
});

An additional feature is to create grouped arrays of editable objects, but I am not sure that will help you here:

https://developer.playcanvas.com/en/user-manual/scripting/script-attributes/#json-attribute

2 Likes

If you are looking for ‘headers’, JSON attributes is the closest you will get that Leonidas linked to above.

2 Likes