Struct StyleValues
Container object used to animate multiple style values at once.
Namespace: UnityEngine.UIElements.Experimental
Syntax
public struct StyleValues
Properties
backgroundColor
Background color to paint in the element's box.
Declaration
public Color backgroundColor { get; set; }
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
public float borderBottomLeftRadius { get; set; }
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
public float borderBottomRightRadius { get; set; }
Property Value
Type | Description |
---|---|
Single |
borderBottomWidth
Space reserved for the bottom edge of the border during the layout phase.
Declaration
public float borderBottomWidth { get; set; }
Property Value
Type | Description |
---|---|
Single |
borderColor
Color of the border to paint inside the element's box.
Declaration
public Color borderColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
borderLeftWidth
Space reserved for the left edge of the border during the layout phase.
Declaration
public float borderLeftWidth { get; set; }
Property Value
Type | Description |
---|---|
Single |
borderRightWidth
Space reserved for the right edge of the border during the layout phase.
Declaration
public float borderRightWidth { get; set; }
Property Value
Type | Description |
---|---|
Single |
borderTopLeftRadius
The radius of the top-left corner when a rounded rectangle is drawn in the element's box.
Declaration
public float borderTopLeftRadius { get; set; }
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
public float borderTopRightRadius { get; set; }
Property Value
Type | Description |
---|---|
Single |
borderTopWidth
Space reserved for the top edge of the border during the layout phase.
Declaration
public float borderTopWidth { get; set; }
Property Value
Type | Description |
---|---|
Single |
bottom
Bottom distance from the element's box during layout.
Declaration
public float bottom { get; set; }
Property Value
Type | Description |
---|---|
Single |
color
Color to use when drawing the text of an element.
Declaration
public Color color { get; set; }
Property Value
Type | Description |
---|---|
Color |
flexGrow
Specifies how much the item will grow relative to the rest of the flexible items inside the same container.
Declaration
public float flexGrow { get; set; }
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
public float flexShrink { get; set; }
Property Value
Type | Description |
---|---|
Single |
height
Fixed height of an element for the layout.
Declaration
public float height { get; set; }
Property Value
Type | Description |
---|---|
Single |
left
Left distance from the element's box during layout.
Declaration
public float left { get; set; }
Property Value
Type | Description |
---|---|
Single |
marginBottom
Space reserved for the bottom edge of the margin during the layout phase.
Declaration
public float marginBottom { get; set; }
Property Value
Type | Description |
---|---|
Single |
marginLeft
Space reserved for the left edge of the margin during the layout phase.
Declaration
public float marginLeft { get; set; }
Property Value
Type | Description |
---|---|
Single |
marginRight
Space reserved for the right edge of the margin during the layout phase.
Declaration
public float marginRight { get; set; }
Property Value
Type | Description |
---|---|
Single |
marginTop
Space reserved for the top edge of the margin during the layout phase.
Declaration
public float marginTop { get; set; }
Property Value
Type | Description |
---|---|
Single |
opacity
Specifies the transparency of an element.
Declaration
public float opacity { get; set; }
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
public float paddingBottom { get; set; }
Property Value
Type | Description |
---|---|
Single |
paddingLeft
Space reserved for the left edge of the padding during the layout phase.
Declaration
public float paddingLeft { get; set; }
Property Value
Type | Description |
---|---|
Single |
paddingRight
Space reserved for the right edge of the padding during the layout phase.
Declaration
public float paddingRight { get; set; }
Property Value
Type | Description |
---|---|
Single |
paddingTop
Space reserved for the top edge of the padding during the layout phase.
Declaration
public float paddingTop { get; set; }
Property Value
Type | Description |
---|---|
Single |
right
Right distance from the element's box during layout.
Declaration
public float right { get; set; }
Property Value
Type | Description |
---|---|
Single |
top
Top distance from the element's box during layout.
Declaration
public float top { get; set; }
Property Value
Type | Description |
---|---|
Single |
unityBackgroundImageTintColor
Tinting color for the element's backgroundImage.
Declaration
public Color unityBackgroundImageTintColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
width
Fixed width of an element for the layout.
Declaration
public float width { get; set; }
Property Value
Type | Description |
---|---|
Single |