GUIStyle

作者:追风剑情 发布于:2015-11-26 17:13 分类:GUI

  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class GUITest : MonoBehaviour {
  5.  
  6. public GUIStyle myGUIStyle;
  7.  
  8. void OnGUI () {
  9. if (GUILayout.Button("Button Use custom GUISkin", myGUIStyle))
  10. {
  11.  
  12. }
  13. }
  14. }

myGUIStyle.png

运行效果

run.png

标签: GUI

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号