Skip to reading
GUI Styling, Shaders & Effects

Use advanced JSON when a typed field is absent

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Some element types expose a dedicated Border Width field, while an ordinary Button or Panel may not show that same typed control in Visual Style. The supported authored borderWidth property can still be edited in Raw JSON.

1. Select the intended element and open Raw JSON (Advanced).

2. Keep the full existing element object. Find borderWidth; change it to 2, or add it as a correctly comma-separated property.

3. Find the radius and corner properties if you are adjusting those at the same time.

4. Click Validate and Apply Element JSON (Advanced).

5. Check the visible border, then Save Project.

These lines are an excerpt to merge into the existing object, not a replacement for the whole element:

Code example
"borderWidth": 2,
"radius": 16,
"radiusTopLeft": 24,
"radiusTopRight": 4,
"radiusBottomRight": 24,
"radiusBottomLeft": 4

JSON uses double quotes around keys and strings. Numeric values are not quoted. Separate properties with commas and avoid a trailing comma after the last property in an object.

Do not replace the entire element with the excerpt. Its ID, type, position, size, content and events must remain. Save a project copy before large raw edits.

Page 57 of 70Permalink
Go to page