public GUIStyle textField ;

説明

GUI.TextField で使用されるスタイル

using UnityEngine;

public class Example : MonoBehaviour { // Modifies only the textField style of the current GUISkin

GUIStyle style; string str = "A string...";

void OnGUI() { GUI.skin.textField = style; str = GUILayout.TextField(str); } }