Unity Android
2015-06-02 16:13
766 查看
Handheld.Vibrate(); //震动效果
入门简单介绍: http://bbs.9ria.com/thread-173246-1-1.html
圣典android入门学习: http://game.ceeger.com/Manual/android-GettingStarted.html
Android GetTouch: http://game.ceeger.com/Script/Input/Input.GetTouch.html
android remote: /article/5006009.html
Unity打开Activeity,调用java代码传递参数: http://www.xuanyusong.com/archives/667
Unity与Android传递消息: http://www.xuanyusong.com/archives/676
Unity与Android交互: /article/2872323.html
/article/1479850.html
Unity 发布 Android apk:
PlayerSettings : Bundle Identifier* : ...
Munimum API Level: ...
using UnityEngine; using System.Collections; public class r : MonoBehaviour { public float speed = 200.0f; float oy = 0.0f; float ny = 0; float dy =0; void Update () { ny = Input.acceleration.y; //加速度 dy = ny - oy; oy = ny; print (dy); #if UNITY_ANDROID if (dy > 0.6f) { Handheld.Vibrate(); } if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Moved){ this.transform.Rotate (new Vector3(speed/3*Time.deltaTime,speed*Time.deltaTime,Time.deltaTime*speed/2)); } #endif } }
入门简单介绍: http://bbs.9ria.com/thread-173246-1-1.html
圣典android入门学习: http://game.ceeger.com/Manual/android-GettingStarted.html
Android GetTouch: http://game.ceeger.com/Script/Input/Input.GetTouch.html
android remote: /article/5006009.html
Unity打开Activeity,调用java代码传递参数: http://www.xuanyusong.com/archives/667
Unity与Android传递消息: http://www.xuanyusong.com/archives/676
Unity与Android交互: /article/2872323.html
/article/1479850.html
Unity 发布 Android apk:
PlayerSettings : Bundle Identifier* : ...
Munimum API Level: ...
[MenuItem("Tools/Build Google Project")] static public void BuildAssetBudles(){ //代码自动发布android apk BuildPipeline.BuildPlayer(new string[]{ "Assets/demo.unity"} , Application.dataPath + "/../", BuildTarget.Android, BuildOptions.AcceptExternalModificationsToPlayer); }
相关文章推荐
- Unity区分平台编译
- Unity3d 使用UGUI实现button其他事件处理
- Unity学习疑问记录之界面适配
- 手游频繁崩溃”闪退”? 从程序上找原因
- Unity将来时:IL2CPP是什么?
- Unity3d接入IOS内购
- 浅谈Unity中的缓冲池机制
- Unity客户端框架笔记二(组件实体开发模式的思考)
- Unity3D教程宝典之Shader篇:第一讲Shader总篇
- mac下双开unity
- UNITY 4.6.4 发行说明 中文版
- UNITY 4.6.5 发行说明 中文版
- Unity3D将来时:IL2CPP(下)
- <Unity UGUI>使用c#反射实现UGUI文本显示的国际化
- 用Unity制作游戏,你需要深入了解一下IL2CPP
- 3D家居设计展示系统
- Unity3D教程宝典之Shader篇 CG函数
- Unity中影响性能的几个因素
- unity中关于游戏场景的优化——遮挡剔除
- Unity Sprite以及基础博文