UI Toolkit は、プロジェクト全体のテキスト設定を Panel Text Settings アセットに保存します。UI Toolkit は、デフォルトの Panel Text Settings アセットをテキストオブジェクトに使用します。
ランタイム UI では、Panel Text Settings アセットを作成して Panel Settings アセットに割り当て、テキスト設定プロパティを編集できます。
ノート: 現在のリリースでは、エディター UI のデフォルトの Panel Text Settings を変更することはできません。
このセクションでは、Panel Text Settings アセットのすべてのプロパティについて説明します。Panel Text Settings アセットは、そのパネル内で使用されるすべてのテキストオブジェクトのデフォルト値を制御します。
フォントアセット、スプライトアセット、カスタムスタイルシート、カラーグラデーションプリセットを保存するパスを編集できます。パスは Resources
フォルダーのサブフォルダーでなければなりません。プロジェクトに Resources
フォルダーがない場合は作成してください。
フォント ファイルから フォントアセットを作成 したら、すべてのフォントアセットを保存するためのパスにそれを配置する必要があります。
プロパティ | 説明 |
---|---|
Default Font Asset | 新しいテキストオブジェクトを作成するときに使用するデフォルトフォント。 |
Path | すべてのフォントアセットを保存するパス。 |
このフォントアセットのグローバル フォールバックフォントアセット リストを管理します。
ノート: Font Asset プロパティで設定されたローカルフォールバック は、グローバルフォールバックよりも優先されます。
プロパティ | 説明 |
---|---|
Fallback Font Assets List |
+ または - をクリックして、フォントスロットを追加/削除します。 フォントの隣の丸いアイコンをクリックすると、フォントアセットを選択するオブジェクトピッカーが開きます。 リストを並べ替えるには、フォントアセットの左側にあるハンドルをドラッグします。 |
グリフの欠落を処理するためのプロジェクト全体の設定。
プロパティ | 説明 |
---|---|
Missing Character Unicode | 欠落しているグリフがフォールバックフォントにない場合に使用する文字の Unicode。 デフォルト値の 0 では、正方形のアウトラインが生成されます。 |
Clear Dynamic Data on Build | すべての動的データを消去し、フォントアセットをデフォルトの作成時の空の状態に戻します。 |
Disable Warnings | グリフの欠落のたびに警告を記録したくない場合は、これを有効にします。 |
スプライトアセットを作成 したら、すべてのスプライトアセットを保存するパスに配置する必要があります。デフォルトのスプライトアセットを設定し、デフォルトのスプライトアセット内のスプライトをインデックスやスプライト名で参照することができます。
プロパティ | 説明 |
---|---|
Default Sprite Asset | デフォルトで使用する スプライトアセット。 |
Missing Sprite Unicode | 欠落しているスプライトの Unicode。 |
Path | すべてのスプライトアセットを保存するパス。 |
Panel Text Setting で設定されたフォールバックリストは、グローバルフォールバックと呼ばれます。スプライトアセットで設定されたローカルフォールバック は、グローバルフォールバックリストよりも優先されます。
プロパティ | 説明 |
---|---|
Sprite Asset Fallback List | フォールバックリストにスプライトアセットを追加または削除します。また、スプライトアセットの左側にあるハンドルをドラッグして、リストを並べ替えることもできます。 |
カスタムスタイルシートを作成したら、すべてのカスタム製のスタイルシートアセットを保存するパスにそれを配置する必要があります。
プロパティ | 説明 |
---|---|
Default Style Sheet | プロジェクト内のすべてのテキストオブジェクトで使用するデフォルトの スタイルシート。 |
Path | すべてのカスタムスタイルシートのアセットを保存するパス。 |
すべてのカラーグラデーションプリセットを保存するパスを設定します。
プロパティ | 説明 |
---|---|
Path | カラーグラデーションプリセットを保存するパス。 |
アジア言語の正しい改行動作を得るために、どの文字が先行文字と後続文字として動作するかを指定します。
プロパティ | 説明 |
---|---|
Leading Characters | 先行文字のリストを含むテキストファイルを指定します。 |
Following Characters | 後続文字のリストを含むテキストファイルを指定します。 |
Korean Line Breaking Rules | 最新のルールを使用するにはこれを有効にします。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.