Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


StyleScale

Style value that can be either a Scale or a StyleKeyword.
Read time 1 minuteLast updated 6 days ago

Definition

public struct StyleScale : IStyleValue<Scale>, IEquatable<StyleScale>

Constructors

Constructor

Description

StyleScale(UnityEngine.UIElements.Scale)Creates a new StyleScale from a Scale.
StyleScale(UnityEngine.UIElements.StyleKeyword)Creates a new StyleScale from a StyleKeyword.
StyleScale(UnityEngine.Vector2)Creates a new StyleScale from a Vector2.

Properties

Property

Description

keywordThe style keyword.
valueThe Scale value.