Actor::updateMassFromShapes: Compute mesh inertia tensor failed for one of the actor's mesh shapes! Please change mesh geometry or supply a tensor manually!
去掉mesh collider
鼠标控制人物移动 点击NGUI界面的时候人也会走
UICamera.hoverObject!=null 就是点到了NGUI上
(未测试)分层,把不同的动画放入不同的动画层中,这样maya输出的fbx应该是能包含多段动画,而且每段动画都从frame1作为开头计算。
另外一种就是进入motionbuilder中归类整理成不同的clip
获取所有子对象
function GetComponentsInChildren (type : Type, includeInactive : bool = false) : Component[]
GetComponentsInChildren<Transform>(true);
动态改变NGUI UILabel的字体颜色
("Label").GetComponent<UILabel>().color = new Color(45 / 255f, 223 / 255f, 255 / 255f);
Unity中protobuf的使用方法 :在Assets目录下面新建 smcs.rsp文件,并在其中写入 -unsafe 字符串,前后不加空格
MAC同时启动两个Unity 打开terminal 输入
open -n /Applications/Unity/Unity.app
xml读写有时会碰到 XmlException: Text node cannot appear in this state
可能的原因1、xml文件的meta问题,比如1.xml和1.xml.meta 2、编码格式问题,如utf-8等
Unity assetbundle加载后丢失shader问题
内置shader需要加入include列表,非内置的不需要
NotSupportedException: CodePage 936 not supported
将Unity安装目录(C:\Program Files\Unity\Editor\Data\Mono\lib\mono\2.0)下的I18N.CJK.dll 复制到工程文件下
General error during class generation: The max number of supported arguments is 255, but found 578
修改工程内Plugins下Android下的mainTemplate.gradle,添加自己的ab后缀,删除原有的**STREAMING_ASSETS**
aaptOptions {
noCompress '.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**
}
如修改为
aaptOptions {
noCompress '.t','.unity3d', '.ress', '.resource', '.obb'
}
Unity对Mac APFS支持 从Unity5.5.5和5.6.3开始