随笔分类 -  unity3d

NGUI UIPane clip属性不能正常工作
摘要:1、检查一下 被裁减的子物体下面 是否有UIPanel 去掉之2、检查一下 子物体所在的layer 与摄像机 渲染的layer 是不是同一个 阅读全文

posted @ 2014-01-13 10:50 千手人屠 阅读(285) 评论(0) 推荐(0)

NGUI DragablePanel与UiStretch的兼容
摘要:如题: 直接代码using UnityEngine;using System.Collections;using System.Collections.Generic;/// /// 把panel单独取出来 重置其size/// [ExecuteInEditMode][RequireComponent(typeof(UIDraggablePanel))]public class ClipPanelPlugin : MonoBehaviour { public bool needReposition; public enum ScrollDirection { hor... 阅读全文

posted @ 2014-01-11 16:57 千手人屠 阅读(670) 评论(0) 推荐(0)

unity3d ngui dragableCamera 与scrollbar
摘要:ngui 拖动物体的第二个例子里没有和scrollbar自己写了一个using UnityEngine;using System.Collections;public class ScrollBar : MonoBehaviour { public UIScrollBar sb; pub... 阅读全文

posted @ 2013-08-24 16:33 千手人屠 阅读(2116) 评论(0) 推荐(0)

unity 相机分屏
摘要:Camera 有两个参数 控制 分屏rect,depthrectWhere on the screen is the camera rendered in normalized coordinates.The values inrectrange from zero (left/bottom) to one (right/top).控制camera 在屏幕上的显示区域(0,0,1,1) 就是默认的全屏depthDescriptionCamera's depth in the camera rendering order.Cameras with lower depth are rend 阅读全文

posted @ 2013-08-24 16:11 千手人屠 阅读(1148) 评论(0) 推荐(0)

打开多个Unity项目
摘要:在同一机器上你能运行Unity两次,然后打开不同的工程。在Windows环境中,通过执行另一个Unity实例并在项目向导中打开项目。在Mac环境下,多个Unity实例能通过带有特定的-projectPath参数在terminal被打开。/Applications/Unity/Unity.app/Contents/MacOS/Unity-projectPath "/Users/MyUser/MyProjectFolder/"/Applications/Unity/Unity.app/Contents/MacOS/Unity-projectPath "/Users/M 阅读全文

posted @ 2013-08-15 19:58 千手人屠 阅读(2177) 评论(0) 推荐(0)

地形 凹陷
摘要:地形凹下去:先要设置terrain-flattenheightmap 这个 阅读全文

posted @ 2013-05-29 15:33 千手人屠 阅读(235) 评论(0) 推荐(0)

导航