
unity系统基础
「已注销」
这个作者很懒,什么都没留下…
展开
-
灯光
The Light Inspector 灯光检视面板There are three types of lights in Unity 在Unity中有三种类型的灯:Point lights shine from a location equally in all directions, like a light bulb. 点光源从一个位置向四面八方发出光线,就像一盏灯。Dir转载 2015-09-10 08:45:27 · 670 阅读 · 0 评论 -
角色控制器
The Character Controller is mainly used for third-person or first-person player control that does not make use of Rigidbody physics.角色控制器主要用于第三人称或第一人称游戏主角控制,并不使用刚体物理效果。The Character Controller转载 2015-09-10 09:10:10 · 640 阅读 · 0 评论 -
鼠标状态
public Texture2D cursor_normal;//鼠标变换图片 public Texture2D cursor_npc_take; private Vector2 hotspot = Vector2.zero; private CursorMode mode = CursorMode.Auto;//光标,自动 void OnMouseEn原创 2016-02-18 14:36:56 · 308 阅读 · 0 评论 -
预设细节
预设怎么取消如下图所示,创建一个普通的立方体对象Cube ,Hierarchy视图中名子的颜色是“白色”的。同样在创建一个Prefabe ,你会发现此时立方体对象在Hierrchy视图中名子的颜色成“蓝色”了。接着问题就来了,这个朋友就问怎么才能让Prefab(蓝色名子)的游戏对象还原成Cube(白色名子),这确实是个很细节的问题,他目前的作法是把Cube(预设)删除,转载 2016-02-18 15:03:41 · 270 阅读 · 0 评论 -
倒计时
public int a = 25; public int ShiJian; public Text text; void Update() { a--; if (a == 0) { ShiJian--; text.GetComponent().text原创 2016-03-11 15:42:36 · 201 阅读 · 0 评论 -
粒子系统
粒子系统的控制面板主要由Inspector视图中的Particle System组件的属性面板及Scene视图中的Particle Effect两个面板组成。Particle System组件的属性面板包括Particle System初始化模块及Emission、Shape等多个模块,每个模块都控制着粒子某一方面的行为特性,属性面板最下面为Particle System Curves粒子曲线,如转载 2015-09-09 15:17:26 · 501 阅读 · 0 评论 -
添加组件或脚本的方法
1.在Inspctor面板上直接添加2.使用AddComponent添加组件public SphereCollider sc;public void Awake() {//给游戏物体添加名为FoobarScript的脚本gameObject.AddComponent("FoobarScript");//给游戏物体添加球体碰撞器sc = gameObject.AddCompon原创 2016-04-08 14:39:25 · 1243 阅读 · 0 评论