using UnityEngine; using System.Collections; public class GUITest : MonoBehaviour { public GUIStyle myGUIStyle; void OnGUI () { if (GUILayout.Button("Button Use custom GUISkin", myGUIStyle)) { } } }
运行效果