Version: 1.4
LanguageEnglish
  • C#

FontDefinition

struct in UnityEngine.UIElements

/

Implemented in:UnityEngine.UIElementsModule

Description

Describes a VisualElement font.

Properties

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

Static Methods

FromFont Create a FontDefinition from Font.
FromSDFFont Create a FontDefinition from FontAsset.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答