Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


StyleTextAutoSize

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

Definition

public struct StyleTextAutoSize : IStyleValue<TextAutoSize>, IEquatable<StyleTextAutoSize>

Constructors

Constructor

Description

StyleTextAutoSize(UnityEngine.UIElements.StyleKeyword)Creates a new StyleTextAutoSize from a StyleKeyword.
StyleTextAutoSize(UnityEngine.UIElements.TextAutoSize)Creates a new StyleTextAutoSize from a TextAutoSize value.

Properties

Property

Description

keywordThe style keyword.
valueThe TextAutoSize value.