自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 Unity 阴影

1.旧版本的Unity不支持android和ios平台上的实时阴影,只要你在build settings中的平台选择是android或ios,即使在unity编辑器中,也不会有实时阴影效果。 unity3.5.5版本就是这样的。 但是新版本的unity已经支持所有平台上的实时阴影效果了,包括android和ios都可以。只是基于Tegra的android手机仍然不支持实时阴影! 2.实时阴影

2013-12-13 15:29:49 4830

原创 Input.GetAxis

Details All the axes that you set up in the Input Manager serve two purposes: They allow you to reference your inputs by axis name in scripting They allow the players of your game to customiz

2013-12-12 10:56:27 9500

原创 Debugger

1.You can debug all the languages supported by the engine (JavaScript, C#, and Boo).你可以调试引擎所支持的所有语言(Javascript,C#和Boo)。 2.Note that the debugger has to load all your code and all symbols, so bear in

2013-12-10 15:46:58 792

原创 UnityGUI

1.OnGUI()函数每一帧被调用一次(只要包含它的脚本是被启用的),就像Update()函数那样。 2.GUI.Box不可点击,GUI.Button可点击。 3.OnGUI函数每一帧调用一次,在调用的每一帧,若该函数内有创建控件的逻辑时则创建控件,无则自动销毁控件,无需我们添加别的控制代码 using UnityEngine; using System.Collections; publ

2013-12-09 15:51:26 856

原创 Unity实现手机震动

Android用:Handheld.Vibrate() IOS用:iPhoneUtils.Vibrate() 怎样修改震动时间:Unity的API一次Vibrator半秒钟,想延长震动时间用计时器可以,想缩短行不通,要使用androidSDK改写Vibrator的震动周期,然后unity里调用。

2013-12-06 17:34:00 5855

翻译 iTween:Getting Started!

Installation 安装 iTween can be used with all scripting languages that Unity supports including JavaScript, C# and Boo. To install iTween create a folder named "Plugins" in your project's assets (if

2013-12-06 14:28:44 752

原创 iTween

1.Hashtable 哈希表 使用Hashtable类来存储key+value的一对或多对组合。如下面的 key1对应value“one”,key2对应value”two“ using UnityEngine; using System.Collections; public class Example : MonoBehaviour { public Hashtable h;

2013-12-05 16:16:35 1004

原创 Touch

Input.touchCount static int touchCount; Description Number of touches. Guaranteed not to change throughout the frame. (Read Only) PC上不能触摸,所以这个值总是为0。在小米手机上,经本人测试,为触摸在屏幕上的手指数量。所以我们一般要在

2013-12-04 20:58:29 1606

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除