ドキュメント

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.