摘要:1、检查一下 被裁减的子物体下面 是否有UIPanel 去掉之2、检查一下 子物体所在的layer 与摄像机 渲染的layer 是不是同一个
阅读全文
摘要:如题: 直接代码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...
阅读全文
摘要:ngui 拖动物体的第二个例子里没有和scrollbar自己写了一个using UnityEngine;using System.Collections;public class ScrollBar : MonoBehaviour { public UIScrollBar sb; pub...
阅读全文
摘要: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
阅读全文
摘要:在同一机器上你能运行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
阅读全文
摘要:地形凹下去:先要设置terrain-flattenheightmap 这个
阅读全文