Sunscreen
Home
View mode
Sunscreen
🔌 Usage

🎛️Properties

All of em, explained

Property Tabel

PropertyTypeDescriptionUsage
PositionVec2iThe position of the element on the page or in a layoutTutorial
SizeVec2iThe size of the element on the page or in a layoutTutorial
MarginVec2iThe margin of the element; margins inset the content inside of the element itself, keeping the hitbox the size of the element while making the content smallerTutorial
PaddingVec2iThe padding of the element; paddings add empty space outside of the content of the element itself, making the hitbox the size of the element + padding, while keeping the content the same sizeTutorial
DecoratorCanvas or NineSliceThe look of the element; can either be a bare Canvas type (gets stretched) or a tiled NineSliceTutorial
RotationVec3dThe rotation of an item/entity element; really only works on those yeah and does what you expect it to, in degreesTutorial
ScaleFloatThe scale of an element; due to a scuffed implementation works flipped, larger scales make it smallerTutorial
VisibilityFloatThe visiblity of an element; shows or hides the elementTutorial
Screen Alignment (HUDs only)One of nine belowThe anchor point of an element; can be topleft, topcenter, topright, left, center, right, bottomleft, bottomcenter, bottomright, not really a property but still countsTutorial
Viewport FitCENTER, SCALE or FILLThe fit of a page in the viewport; center centers it around the players screensize, scale scales/stretches it and fill tries to make it fit as good as possibleTutorial

Complex Properties

Creating new properties

Addons (Kotlin Script)

DOCS SOON

Node editor

DOCS SOMEDAY

On this page