Scripting API

IStyle

interface in UnityEngine.UIElements · UnityEngine.UIElementsModule

65 of 89 of Unity's membersUnity's documentation
In Tassix

The style properties a script can set on an element (its inline style).

Properties 66

StyleEnum<Align> alignContent { get; set; }
StyleEnum<Align> alignItems { get; set; }
StyleEnum<Align> alignSelf { get; set; }
StyleColor backgroundColor { get; set; }
StyleBackground backgroundImage { get; set; }
StyleColor borderBottomColor { get; set; }
StyleLength borderBottomLeftRadius { get; set; }
StyleLength borderBottomRightRadius { get; set; }
StyleFloat borderBottomWidth { get; set; }
StyleColor borderLeftColor { get; set; }
StyleFloat borderLeftWidth { get; set; }
StyleColor borderRightColor { get; set; }
StyleFloat borderRightWidth { get; set; }
StyleColor borderTopColor { get; set; }
StyleLength borderTopLeftRadius { get; set; }
StyleLength borderTopRightRadius { get; set; }
StyleFloat borderTopWidth { get; set; }
StyleLength bottom { get; set; }
StyleColor color { get; set; }
StyleEnum<DisplayStyle> display { get; set; }
StyleLength flexBasis { get; set; }
StyleEnum<FlexDirection> flexDirection { get; set; }
StyleFloat flexGrow { get; set; }
StyleFloat flexShrink { get; set; }
StyleEnum<Wrap> flexWrap { get; set; }
StyleLength fontSize { get; set; }
StyleLength height { get; set; }
StyleEnum<Justify> justifyContent { get; set; }
StyleLength left { get; set; }
StyleLength letterSpacing { get; set; }
StyleLength marginBottom { get; set; }
StyleLength marginLeft { get; set; }
StyleLength marginRight { get; set; }
StyleLength marginTop { get; set; }
StyleLength maxHeight { get; set; }
StyleLength maxWidth { get; set; }
StyleLength minHeight { get; set; }
StyleLength minWidth { get; set; }
StyleFloat opacity { get; set; }
StyleEnum<Overflow> overflow { get; set; }
StyleLength paddingBottom { get; set; }
StyleLength paddingLeft { get; set; }
StyleLength paddingRight { get; set; }
StyleLength paddingTop { get; set; }
StyleEnum<Position> position { get; set; }
StyleLength right { get; set; }
StyleRotate rotate { get; set; }
StyleScale scale { get; set; }
StyleEnum<TextOverflow> textOverflow { get; set; }
StyleLength top { get; set; }
StyleTransformOrigin transformOrigin { get; set; }
StyleList<TimeValue> transitionDelay { get; set; }
StyleList<TimeValue> transitionDuration { get; set; }
StyleList<StylePropertyName> transitionProperty { get; set; }
StyleList<EasingFunction> transitionTimingFunction { get; set; }
StyleTranslate translate { get; set; }
StyleColor unityBackgroundImageTintColor { get; set; }
StyleEnum<ScaleMode> unityBackgroundScaleMode { get; set; }
StyleFont unityFont { get; set; }
StyleEnum<FontStyle> unityFontStyleAndWeight { get; set; }
StyleLength unityParagraphSpacing { get; set; }
StyleEnum<TextAnchor> unityTextAlign { get; set; }
StyleEnum<Visibility> visibility { get; set; }
StyleEnum<WhiteSpace> whiteSpace { get; set; }
StyleLength width { get; set; }
StyleLength wordSpacing { get; set; }

Not in Tassix yet 24

Clear aspectRatio backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize cursor filter textShadow unityEditorTextRenderingMode unityFontDefinition unityMaterial unityOverflowClipBox unitySliceBottom unitySliceLeft unitySliceRight unitySliceScale unitySliceTop unitySliceType unityTextAutoSize unityTextGenerator unityTextOutlineColor unityTextOutlineWidth unityTextOverflowPosition