Version: 2018.1
public GUIContent ();

説明

GUIContent のコンストラクター

空の GUIContent を作成します。


public GUIContent (string text);

説明

テキストのみ含む GUIContent を作成します。

GUI を使用するときに、シンプルなテキストの場合は GUIContent を作成する必要はありません - 以下の二つのコードは機能的に同じものです。

no example available in C#

public GUIContent (Texture image);

説明

画像のみ含む GUIContent を作成します。

no example available in C#

public GUIContent (string text, Texture image);

説明

text と画像の両方を含む GUIContent を作成します。

no example available in C#

public GUIContent (string text, string tooltip);

説明

text を含む GUIContent を作成します。ユーザーが GUI の上にマウスを乗せると、グローバルの GUI.tooltiptooltip がセットされます。

no example available in C#

public GUIContent (Texture image, string tooltip);

説明

image を含む GUIContent を作成します。ユーザーが GUI の上にマウスを乗せると、グローバルの GUI.tooltiptooltip がセットされます。


public GUIContent (string text, Texture image, string tooltip);

説明

textimage の両方を含み、tooltip が定義された GUIContent を作成します。ユーザーが GUI の上にマウスを乗せると、グローバルの GUI.tooltiptooltip がセットされます。


public GUIContent (GUIContent src);

説明

他の GUIContent をコピーして作成します。

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961