上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
摘要: ![alt text](https://img2023.cnblogs.com/blog/3578436/202503/3578436-20250318111102005-181924507.png) 阅读全文
posted @ 2025-03-18 11:11 cannedmint 阅读(5) 评论(0) 推荐(0)
摘要: public class l10 : MonoBehaviour { private void OnGUI() { //GUILayout 自动布局 //用于编辑器开发 GUILayout.Button("123"); GUILayout.Button("1234"); GUILayout.Butt 阅读全文
posted @ 2025-03-18 10:36 cannedmint 阅读(12) 评论(0) 推荐(0)
摘要: public class L9 : MonoBehaviour { public GUISkin skin; private void OnGUI() { //全局颜色 影响全局背景和文本颜色,即使使用了GUIStyle也会受到这个影响 GUI.color = Color.cyan; //文本颜色, 阅读全文
posted @ 2025-03-18 10:21 cannedmint 阅读(11) 评论(0) 推荐(0)
摘要: public class Lesson8 : MonoBehaviour { private Rect r = new Rect(400,400,200,150); private void OnGUI() { //窗口 //窗口唯一id,Rect,绘制窗口委托函数,窗口标题 GUI.Window( 阅读全文
posted @ 2025-03-18 09:50 cannedmint 阅读(5) 评论(0) 推荐(0)
摘要: public class Lesson7 : MonoBehaviour { public Rect groupPos; public Rect scrollPos; public Rect showPos; private Vector2 nowPos; private void OnGUI() 阅读全文
posted @ 2025-03-18 09:24 cannedmint 阅读(9) 评论(0) 推荐(0)
摘要: public class Lesson6 : MonoBehaviour { private int toolbarIndex = 0; private string[] toolbarInfos = new string[] { "1","2","3"}; private int selIndex 阅读全文
posted @ 2025-03-17 21:19 cannedmint 阅读(9) 评论(0) 推荐(0)
摘要: public class Lesson5 : MonoBehaviour { public Rect texPos; public Texture tex; public ScaleMode mode =ScaleMode.StretchToFill; public bool alpha = tru 阅读全文
posted @ 2025-03-17 20:55 cannedmint 阅读(15) 评论(0) 推荐(0)
摘要: public class Lesson4 : MonoBehaviour { private string inputStr; private string pwStr; private float nowValue = 0.5f; private float nowValue1 = 0.5f; p 阅读全文
posted @ 2025-03-17 20:39 cannedmint 阅读(8) 评论(0) 推荐(0)
摘要: public class Lesson3 : MonoBehaviour { private bool isSel; public GUIStyle style; private int nowSel = 1; private void OnGUI() { //多选框 //普通样式 //第二个参数是 阅读全文
posted @ 2025-03-17 18:38 cannedmint 阅读(9) 评论(0) 推荐(0)
摘要: public class Lesson2 : MonoBehaviour { public Texture guiT; public Rect rect; public Rect rect1; public GUIContent content; public GUIStyle guiS; publ 阅读全文
posted @ 2025-03-17 17:19 cannedmint 阅读(26) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页