文档

Unity Engine

Unity Engine

FontDefinition

Describes a VisualElement font.
阅读时间1 分钟最后更新于 20 天前

Definition

public struct FontDefinition : IEquatable<FontDefinition>

Properties

Property

Description

fontFont to use to display text. You cannot set this and FontDefinition.fontAsset at the same time.
fontAssetSDF font to use to display text. You cannot set this and FontDefinition.font at the same time.

Static Methods

Method

Description

FromFontCreate a FontDefinition from Font.
FromSDFFontCreate a FontDefinition from FontAsset.