蓦然有情

2014年9月11日

Unity3d之个性化皮肤

摘要: 1、首先创建皮肤,贴图2、在代码中定义public GUISkin变量,在Inspector中赋值3、在OnGUI中调用 GUI.skin = mySkin; GUI.Button(new Rect(10,10,100,100),"",GUI.skin.GetStyle("name")); 阅读全文

posted @ 2014-09-11 23:26 蓦然有情 阅读(620) 评论(0) 推荐(0)

Unity3D之GUITexture的坐标体系

摘要: Unity3D的GUITexture的坐标,其中x和y的取值在0~1之间,层次使用z来划分,值越大越靠前。 阅读全文

posted @ 2014-09-11 22:55 蓦然有情 阅读(395) 评论(0) 推荐(0)

Unity3d之个性化鼠标

摘要: 代码实例: 1 using UnityEngine; 2 using System.Collections; 3 4 public class CursorController : MonoBehaviour 5 { 6 /// 7 /// 一般鼠标样式 8 /// 9... 阅读全文

posted @ 2014-09-11 22:53 蓦然有情 阅读(288) 评论(0) 推荐(0)

2014年6月1日

Unity3D之C# yield waitforseconds

摘要: Wait for seconds requires a couple things in order to work properly and chances are if it's not working you're probably just missing on of the require... 阅读全文

posted @ 2014-06-01 17:54 蓦然有情 阅读(743) 评论(0) 推荐(0)

导航