随笔分类 - U3D
摘要:关于JIT编译和AOT编译的问题。IOS下是不支持JIT动态编译的,所以如果程序有涉及JIT编译的都会无法执行。在google查过说unity是不支持部分的Linq功能,如Sort方法。但我在unity里面没有用到Linq的Sort方法,不过有用到OrderBy, FirstOrDefault, W...
阅读全文
摘要:来自:http://blog.csdn.net/o_oxo_o/article/details/21325901Unity中Mecanim里面动画状态的变化,是通过设置参数(Parameter)或者按照结束时间来转换的。但是如果当前状态处在两个状态的过度状态,单纯设置参数是实现不了动画的跳转的。今天...
阅读全文
摘要:来自:http://www.xuanyusong.com/archives/2632现在的游戏里一般都会有本地消息,比如每天定时12点或者下午6点告诉玩家进入游戏领取体力。这种东西没必要服务器去推送,客户端就可以完成。Unity里面提供了本地任务的功能但是只有IOS上才支持,开始我有点不解为什么An...
阅读全文
摘要:EditorGUI.ProgressBar 进度条static functionProgressBar(position:Rect,value: float,text: string) : voidParameters参数totalPositionRectangle on the screen to...
阅读全文
摘要:AnimatorStateInfoNamespace: UnityEngineDescriptionInformation about the current or next state.AnimatorStateInfo.nameHashvarnameHash: int;DescriptionNa...
阅读全文
摘要:Unity3D本身自带有控制脚本执行先后顺序的方法:Edit---> Project Settings---> Script Execution Order --->值越小脚本会越先被执行
阅读全文
摘要:接着我的 上一篇自动寻路文章,这一次我们就来学习一下与自动寻路有关的组件吧。Unity中与自动寻路相关的组件主要有两个:NavMeshAgent (又称导航网格代理 ),Off Mesh Link( 分离网格链接 )。这两个组件的作用与使用范围是不同的,我们唯一可以确定的是我们必须烘焙地形,...
阅读全文
摘要:来自:http://www.narkii.com/club/forum.php?mod=viewthread&tid=269146&highlight=Unity%E9%87%8C%E9%9D%A2%E7%9A%84%E8%87%AA%E5%8A%A8%E5%AF%BB%E8%B7%AF ...
阅读全文
摘要:来自:http://blog.csdn.net/oneRain88/article/details/11713299NGUI在Unity3D游戏开发中非常常用,而NGUI对于每一个UI场景,都是以一个UIRoot为UI游戏对象树的根的,那么这个UIRoot是起什么作用的呢?先简单看一下UIRoot中...
阅读全文
摘要:vareulerAngles:Vector3Description描述The rotation as Euler angles in degrees.旋转作为欧拉角度。The x, y, and z angles represent a rotation z degrees around the z...
阅读全文
摘要:来自:http://blog.csdn.net/luxiaoyu_sdc/article/details/131684971,WorldSpace(世界坐标):我们在场景中添加物体(如:Cube),他们都是以世界坐标显示在场景中的。transform.position可以获得该位置坐标。2, Scr...
阅读全文
摘要:static vartimeScale: floatDescription描述The scale at which the time is passing. This can be used for slow motion effects.传递时间的缩放。这可以用于减慢运动效果。When timeS...
阅读全文
摘要:functionFixedUpdate() : voidDescription描述This function is called every fixed framerate frame, if the MonoBehaviour is enabled.当MonoBehaviour启用时,其Fixed...
阅读全文
摘要:static varfixedDeltaTime: floatDescription描述The interval in seconds at which physics and other fixed frame rate updates (like MonoBehaviour'sFixedUpda...
阅读全文
摘要:Gizmos are used to give visual debugging or setup aids in the scene view.Gizmos是用于在场景视图可视化调试或辅助设置。All gizmo drawing has to be done in eitherOnDrawGizm...
阅读全文
摘要:Quaternions are used to represent rotations.四元数用于表示旋转。They are compact, don't suffer from gimbal lock and can easily be interpolated. Unity internally...
阅读全文
摘要:static functionInstantiate(original: Object,position:Vector3,rotation: Quaternion) : ObjectDescription描述Clones the object original and returns the clo...
阅读全文
摘要:static functionGetAxis(axisName: string) : floatDescription描述Returns the value of the virtual axis identified by axisName.根据坐标轴名称返回虚拟坐标系中的值。The value ...
阅读全文
摘要:functionRotate(eulerAngles:Vector3,relativeTo:Space=Space.Self) : voidDescription描述Applies a rotation of eulerAngles.z degrees around the z axis, eule...
阅读全文
摘要:functionTranslate(translation:Vector3,relativeTo:Space=Space.Self) : voidDescription描述Moves the transform in the direction and distance of translation...
阅读全文

浙公网安备 33010602011771号