Unity3D开发Android游戏(remote)

一、用Remote在机子上调试

步骤:

1,install the remote apk file on your phone.
2,enable usb debugging.
3,connect your phone to computer with usb.
4,lunch remote on your phone.
5,lunch unity and hit play.

 

更详细一点的:

http://answers.unity3d.com/questions/198853/unity-remote-for-android-not-working-solution.html

有时不能连是因为找不到设备:

http://gamedev.stmartins.edu/2011/07/getting-unity-remote-for-android-working-on-windows/

 

二、unity的多开方式。

在unity的快捷方式里的属性,目标中加上-projectPath即可。

 

三、检测android的返回键(escape)和主页键(Home)

 

if (Input.GetKeyUp(KeyCode.Escape)) 
{    
       Debug.Log("Return Button");
                
}

if (Input.GetKeyUp(KeyCode.Home)) 
{    
       Debug.Log("Home Button");
                
}

Home键好像不一定能用。。默认就是把程序挂到后台,并不是退出。

转载于:https://www.cnblogs.com/gameprogram/archive/2012/03/24/2415577.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值