Version: 2022.3
言語: 日本語

Font

class in UnityEngine

/

継承:Object

マニュアルに切り替える

説明

フォントアセットのためのスクリプトインターフェースです。font assets.

You can use this class to dynamically switch fonts on Text Meshes.

See Also: TextMesh.

変数

ascentフォントのアセント
characterInfoフォントテクスチャに含まれるすべての文字の配列にアクセスします。
dynamicフォントがダイナミックフォントかどうか
fontSizeフォントのデフォルトサイズ
lineHeightフォントのラインの高さ
materialフォントの表示に使用されるマテリアルを返す

コンストラクタ

Font新規フォントを作成します。

Public 関数

GetCharacterInfo特定の文字のレンダリング情報を取得します。
HasCharacterフォントが特定の文字列を扱えるかを判断します
RequestCharactersInTextureフォントテクスチャに文字を追加するリクエストします(ダイナミックフォントのみ)

Static 関数

CreateDynamicFontFromOSFontユーザーのマシンにインストールされているフォントの描画を可能にするフォントオブジェクトを作成します。
GetMaxVertsForStringテキストジェネレーターが指定された文字列に返す可能性のある頂点の最大数を返します。
GetOSInstalledFontNamesマシンにインストールされているフォントの名前を取得します。
GetPathsToOSFontsGets the file paths of the fonts that are installed on the operating system.

Events

textureRebuiltダイナミックフォントテクスチャが再作成されたときに関数が呼び出されるように設定します

継承メンバー

変数

hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameオブジェクト名

Public 関数

GetInstanceIDGets the instance ID of the object.
ToStringReturns the name of the object.

Static 関数

DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindAnyObjectByTypeRetrieves any active loaded object of Type type.
FindFirstObjectByTypeRetrieves the first active loaded object of Type type.
FindObjectOfTypeタイプ type から最初に見つけたアクティブのオブジェクトを返します
FindObjectsByTypeRetrieves a list of all loaded objects of Type type.
FindObjectsOfTypeGets a list of all loaded objects of Type type.
Instantiateoriginal のオブジェクトをクローンします

Operator

boolオブジェクトが存在するかどうか
operator !=二つのオブジェクトが異なるオブジェクトを参照しているか比較します
operator ==2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。