using System; using UnityEngine; using UnityEditor; using UnityEngine.Serialization; using Random = UnityEngine.Random; [DisallowMultipleComponent]// 禁止同时给一个物体添加多个NewBehaviourScript脚本 [RequireComponent(typeof(Animator))]// 依赖Animator组件,在物体上绑定有NewBeha…
这篇作为上一篇的补充介绍,主要讲Unity里面的投影矩阵的问题: 上篇的链接写给VR手游开发小白的教程:(三)UnityVR插件CardboardSDKForUnity解析(二) 关于Unity中的Camera,圣典里面对每一项属性都做了简要的介绍,没看过的小伙伴传送门在下面 http://www.ceeger.com/Components/class-Camera.html 一.裁剪面 先从这个专业的词汇开始,以下是圣典对裁剪面的介绍: The Near and Far Clip Plane…
[Managing asset dependencies] 一个Asset会依赖其它Asset.可以把一个Asset所依赖的Asset也打包进自己的AssetBundle.可是多个Asset可能依赖同一个/多个Asset.If a separate copy of a shared dependency is included in each bundle that has objects using it, then redundant instances of the assets will…
原文:http://blogs.unity3d.com/2016/03/15/enhanced-visuals-better-performance-and-more-the-unity-5-4-public-beta-is-ready/ 有三个点我觉得很有意思: 1.Better multithreaded rendering The Unity 5.4 beta release takes our multithreaded rendering support to the next lev…
有时候我们需要在编辑器下,频繁的做一些操作,比如说在不同的位置创建物体,一个个的修改坐标显然有点繁琐 这时候ContextMenu就派上用处了 例:利用 LineRenderer 画圆,我们不可能一个个的去修改 Position 这时候就用到ContextMenu了 using System.Collections; using System.Collections.Generic; using UnityEngine; public class SetCircleData : MonoBeha…
Attribute是c#的语言特性 msdn说明如下: The Attribute class associates predefined system information or user-defined custom information with a target element. A target element can be an assembly, class, constructor, delegate, enum, event field,interface, method,…