Interface IResolvedStyle
Style values after layout pass.
Namespace: UnityEngine.UIElements
Syntax
public interface IResolvedStyle
Properties
alignContent
Alignment of the whole area of children on the cross axis if they span over multiple lines in this container.
Declaration
Align alignContent { get; }
Property Value
Type | Description |
---|---|
Align |
alignItems
Alignment of children on the cross axis of this container.
Declaration
Align alignItems { get; }
Property Value
Type | Description |
---|---|
Align |
alignSelf
Similar to align-items, but only for this specific element.
Declaration
Align alignSelf { get; }
Property Value
Type | Description |
---|---|
Align |
backgroundColor
Background color to paint in the element's box.
Declaration
Color backgroundColor { get; }
Property Value
Type | Description |
---|---|
Color |
backgroundImage
Background image to paint in the element's box.
Declaration
Background backgroundImage { get; }
Property Value
Type | Description |
---|---|
Background |
borderBottomColor
Color of the element's bottom border.
Declaration
Color borderBottomColor { get; }
Property Value
Type | Description |
---|---|
Color |
borderBottomLeftRadius
The radius of the bottom-left corner when a rounded rectangle is drawn in the element's box.
Declaration
float borderBottomLeftRadius { get; }
Property Value
Type | Description |
---|---|
Single |
borderBottomRightRadius
The radius of the bottom-right corner when a rounded rectangle is drawn in the element's box.
Declaration
float borderBottomRightRadius { get; }
Property Value
Type | Description |
---|---|
Single |
borderBottomWidth
Space reserved for the bottom edge of the border during the layout phase.
Declaration
float borderBottomWidth { get; }
Property Value
Type | Description |
---|---|
Single |
borderLeftColor
Color of the element's left border.
Declaration
Color borderLeftColor { get; }
Property Value
Type | Description |
---|---|
Color |
borderLeftWidth
Space reserved for the left edge of the border during the layout phase.
Declaration
float borderLeftWidth { get; }
Property Value
Type | Description |
---|---|
Single |
borderRightColor
Color of the element's right border.
Declaration
Color borderRightColor { get; }
Property Value
Type | Description |
---|---|
Color |
borderRightWidth
Space reserved for the right edge of the border during the layout phase.
Declaration
float borderRightWidth { get; }
Property Value
Type | Description |
---|---|
Single |
borderTopColor
Color of the element's top border.
Declaration
Color borderTopColor { get; }
Property Value
Type | Description |
---|---|
Color |
borderTopLeftRadius
The radius of the top-left corner when a rounded rectangle is drawn in the element's box.
Declaration
float borderTopLeftRadius { get; }
Property Value
Type | Description |
---|---|
Single |
borderTopRightRadius
The radius of the top-right corner when a rounded rectangle is drawn in the element's box.
Declaration
float borderTopRightRadius { get; }
Property Value
Type | Description |
---|---|
Single |
borderTopWidth
Space reserved for the top edge of the border during the layout phase.
Declaration
float borderTopWidth { get; }
Property Value
Type | Description |
---|---|
Single |
bottom
Bottom distance from the element's box during layout.
Declaration
float bottom { get; }
Property Value
Type | Description |
---|---|
Single |
color
Color to use when drawing the text of an element.
Declaration
Color color { get; }
Property Value
Type | Description |
---|---|
Color |
Remarks
This property is inherited by default.
display
Defines how an element is displayed in the layout.
Declaration
DisplayStyle display { get; }
Property Value
Type | Description |
---|---|
DisplayStyle |
Remarks
Unlike the visibility property, this property affects the layout of the element. This is a convenient way to hide an element without removing it from the hierarchy (when using the None).
flexBasis
Initial main size of a flex item, on the main flex axis. The final layout might be smaller or larger, according to the flex shrinking and growing determined by the other flex properties.
Declaration
StyleFloat flexBasis { get; }
Property Value
Type | Description |
---|---|
StyleFloat |
flexDirection
Direction of the main axis to layout children in a container.
Declaration
FlexDirection flexDirection { get; }
Property Value
Type | Description |
---|---|
FlexDirection |
flexGrow
Specifies how the item will shrink relative to the rest of the flexible items inside the same container.
Declaration
float flexGrow { get; }
Property Value
Type | Description |
---|---|
Single |
flexShrink
Specifies how the item will shrink relative to the rest of the flexible items inside the same container.
Declaration
float flexShrink { get; }
Property Value
Type | Description |
---|---|
Single |
flexWrap
Placement of children over multiple lines if not enough space is available in this container.
Declaration
Wrap flexWrap { get; }
Property Value
Type | Description |
---|---|
Wrap |
fontSize
Font size to draw the element's text.
Declaration
float fontSize { get; }
Property Value
Type | Description |
---|---|
Single |
Remarks
This property is inherited by default.
height
Fixed height of an element for the layout.
Declaration
float height { get; }
Property Value
Type | Description |
---|---|
Single |
justifyContent
Justification of children on the main axis of this container.
Declaration
Justify justifyContent { get; }
Property Value
Type | Description |
---|---|
Justify |
left
Left distance from the element's box during layout.
Declaration
float left { get; }
Property Value
Type | Description |
---|---|
Single |
letterSpacing
Increases or decreases the space between characters.
Declaration
float letterSpacing { get; }
Property Value
Type | Description |
---|---|
Single |
marginBottom
Space reserved for the bottom edge of the margin during the layout phase.
Declaration
float marginBottom { get; }
Property Value
Type | Description |
---|---|
Single |
marginLeft
Space reserved for the left edge of the margin during the layout phase.
Declaration
float marginLeft { get; }
Property Value
Type | Description |
---|---|
Single |
marginRight
Space reserved for the right edge of the margin during the layout phase.
Declaration
float marginRight { get; }
Property Value
Type | Description |
---|---|
Single |
marginTop
Space reserved for the top edge of the margin during the layout phase.
Declaration
float marginTop { get; }
Property Value
Type | Description |
---|---|
Single |
maxHeight
Maximum height for an element, when it is flexible or measures its own size.
Declaration
StyleFloat maxHeight { get; }
Property Value
Type | Description |
---|---|
StyleFloat |
maxWidth
Maximum width for an element, when it is flexible or measures its own size.
Declaration
StyleFloat maxWidth { get; }
Property Value
Type | Description |
---|---|
StyleFloat |
minHeight
Minimum height for an element, when it is flexible or measures its own size.
Declaration
StyleFloat minHeight { get; }
Property Value
Type | Description |
---|---|
StyleFloat |
minWidth
Minimum width for an element, when it is flexible or measures its own size.
Declaration
StyleFloat minWidth { get; }
Property Value
Type | Description |
---|---|
StyleFloat |
opacity
Specifies the transparency of an element.
Declaration
float opacity { get; }
Property Value
Type | Description |
---|---|
Single |
Remarks
The opacity can be between 0.0 and 1.0. The lower value, the more transparent.
paddingBottom
Space reserved for the bottom edge of the padding during the layout phase.
Declaration
float paddingBottom { get; }
Property Value
Type | Description |
---|---|
Single |
paddingLeft
Space reserved for the left edge of the padding during the layout phase.
Declaration
float paddingLeft { get; }
Property Value
Type | Description |
---|---|
Single |
paddingRight
Space reserved for the right edge of the padding during the layout phase.
Declaration
float paddingRight { get; }
Property Value
Type | Description |
---|---|
Single |
paddingTop
Space reserved for the top edge of the padding during the layout phase.
Declaration
float paddingTop { get; }
Property Value
Type | Description |
---|---|
Single |
position
Element's positioning in its parent container.
Declaration
Position position { get; }
Property Value
Type | Description |
---|---|
Position |
Remarks
This property is used in conjunction with left, top, right and bottom properties.
right
Right distance from the element's box during layout.
Declaration
float right { get; }
Property Value
Type | Description |
---|---|
Single |
textOverflow
The element's text overflow mode.
Declaration
TextOverflow textOverflow { get; }
Property Value
Type | Description |
---|---|
TextOverflow |
top
Top distance from the element's box during layout.
Declaration
float top { get; }
Property Value
Type | Description |
---|---|
Single |
unityBackgroundImageTintColor
Tinting color for the element's backgroundImage.
Declaration
Color unityBackgroundImageTintColor { get; }
Property Value
Type | Description |
---|---|
Color |
unityBackgroundScaleMode
Background image scaling in the element's box.
Declaration
ScaleMode unityBackgroundScaleMode { get; }
Property Value
Type | Description |
---|---|
ScaleMode |
unityFont
Font to draw the element's text.
Declaration
Font unityFont { get; }
Property Value
Type | Description |
---|---|
Font |
Remarks
This property is inherited by default.
unityFontDefinition
Font to draw the element's text.
Declaration
FontDefinition unityFontDefinition { get; }
Property Value
Type | Description |
---|---|
FontDefinition |
Remarks
This property is inherited by default.
unityFontStyleAndWeight
Font style and weight (normal, bold, italic) to draw the element's text.
Declaration
FontStyle unityFontStyleAndWeight { get; }
Property Value
Type | Description |
---|---|
FontStyle |
Remarks
This property is inherited by default.
unityParagraphSpacing
Increases or decreases the space between paragraphs.
Declaration
float unityParagraphSpacing { get; }
Property Value
Type | Description |
---|---|
Single |
unitySliceBottom
Size of the 9-slice's bottom edge when painting an element's background image.
Declaration
int unitySliceBottom { get; }
Property Value
Type | Description |
---|---|
Int32 |
unitySliceLeft
Size of the 9-slice's left edge when painting an element's background image.
Declaration
int unitySliceLeft { get; }
Property Value
Type | Description |
---|---|
Int32 |
unitySliceRight
Size of the 9-slice's right edge when painting an element's background image.
Declaration
int unitySliceRight { get; }
Property Value
Type | Description |
---|---|
Int32 |
unitySliceTop
Size of the 9-slice's top edge when painting an element's background image.
Declaration
int unitySliceTop { get; }
Property Value
Type | Description |
---|---|
Int32 |
unityTextAlign
Horizontal and vertical text alignment in the element's box.
Declaration
TextAnchor unityTextAlign { get; }
Property Value
Type | Description |
---|---|
TextAnchor |
Remarks
This property is inherited by default.
unityTextOutlineColor
Outline color of the text.
Declaration
Color unityTextOutlineColor { get; }
Property Value
Type | Description |
---|---|
Color |
unityTextOutlineWidth
Outline width of the text.
Declaration
float unityTextOutlineWidth { get; }
Property Value
Type | Description |
---|---|
Single |
unityTextOverflowPosition
The element's text overflow position.
Declaration
TextOverflowPosition unityTextOverflowPosition { get; }
Property Value
Type | Description |
---|---|
TextOverflowPosition |
visibility
Specifies whether or not an element is visible.
Declaration
Visibility visibility { get; }
Property Value
Type | Description |
---|---|
Visibility |
Remarks
This property is inherited by default.
whiteSpace
Word wrapping over multiple lines if not enough space is available to draw the text of an element.
Declaration
WhiteSpace whiteSpace { get; }
Property Value
Type | Description |
---|---|
WhiteSpace |
Remarks
This property is inherited by default.
width
Fixed width of an element for the layout.
Declaration
float width { get; }
Property Value
Type | Description |
---|---|
Single |
wordSpacing
Increases or decreases the space between words.
Declaration
float wordSpacing { get; }
Property Value
Type | Description |
---|---|
Single |