言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

GUISkin

Namespace: UnityEngine

/

Inherits from: ScriptableObject

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

GUIの見た目と動作を定義します

GUISkin contains GUI settings and a collection of GUIStyle objects that together specify GUI skin. Active GUI skin is get and set through GUI.skin.

Variables

box GUI.Box で使用されるスタイル
button GUI.Button で使用されるスタイル
customStyles スタイルを作成した場合に格納されている場所
font デフォルトのフォントを設定する
horizontalScrollbar GUI.HorizontalScrollbar の一部の背景として使用されるスタイル
horizontalScrollbarLeftButton GUI.HorizontalScrollbar の左側のボタンで使用されるスタイル
horizontalScrollbarRightButton GUI.HorizontalScrollbar の右側のボタンで使用されるスタイル
horizontalScrollbarThumb GUI.HorizontalScrollbar のthumb(つまみ部分)で使用されるスタイル
horizontalSlider GUI.HorizontalSlider の一部の背景として使用されるスタイル
horizontalSliderThumb GUI.HorizontalSlider のthumb(つまみ部分)で使用されるスタイル
label GUI.Label で使用されるスタイル
scrollView Style used by default for the background of ScrollView controls (see GUI.BeginScrollView).
settings Generic settings for how controls should behave with this skin.
textArea GUI.TextArea で使用されるスタイル
textField GUI.TextField で使用されるスタイル
toggle GUI.Toggle で使用されるスタイル
verticalScrollbar GUI.VerticalScrollbar の一部の背景として使用されるスタイル
verticalScrollbarDownButton GUI.VerticalScrollbar の下側のボタンで使用されるスタイル
verticalScrollbarThumb GUI.VerticalScrollbar のthumb(つまみ部分)で使用されるスタイル
verticalScrollbarUpButton GUI.VerticalScrollbar の上側のボタンで使用されるスタイル
verticalSlider GUI.VerticalSlider の一部の背景として使用されるスタイル
verticalSliderThumb GUI.VerticalSlider のthumb(つまみ部分)で使用されるスタイル
window Style used by default for Window controls (SA GUI.Window).

Functions

FindStyle GUIStyle名でGUIStyleオブジェクトを検索します。無い場合はnullを返します
GetStyle GUIStyle名で取得します

Inherited members

Variables

hideFlags オブジェクトは非表示、シーンに保存、ユーザーが編集可能などを行うかどうか
name オブジェクト名

Functions

GetInstanceID Returns the instance id of the object.
ToString ゲームオブジェクトの名前を返します

Static Functions

Destroy ゲームオブジェクト、コンポーネントやアセットを削除します
DestroyImmediate 直ちにオブジェクトを破壊する。ですが、Destroy関数の方を使うことを推奨します
DontDestroyOnLoad 新しいシーンを読み込んでもオブジェクトが自動で破壊されないように設定します
FindObjectOfType タイプから最初に見つけたアクティブのオブジェクトを返します
FindObjectsOfType タイプから見つけた全てのアクティブのオブジェクト配列を返します
Instantiate original のオブジェクトをクローンします
CreateInstance /className/ からScriptableObjectクラスのインスタンスを作成します

Operators

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

Messages

OnDestroy This function is called when the scriptable object will be destroyed.
OnDisable This function is called when the scriptable object goes out of scope.
OnEnable This function is called when the object is loaded.