如何为移动设备 iOS/Android 统一加速构建和运行过程 [英] How to speed up the build and run process in unity for mobile devices iOS/Android

查看:33
本文介绍了如何为移动设备 iOS/Android 统一加速构建和运行过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在统一开发一款游戏,我需要在 iOS 中测试这款游戏.对于特殊情况,我需要测试控制器的输入触摸,但这需要很多时间.

Hi I'm developing a game in unity and I need test this game in iOS. For particular case I need test the input touch for controllers but this takes much time.

当我更改脚本 C# 中的某些代码行时,我必须在 unity 中重新构建 iOS 游戏,然后我必须构建并运行 Xcode 项目以在我的 iPhone 上测试和运行游戏.

When I change some lines of code in script C#, I must re-build iOS game in unity, after that I must build and run the Xcode project for testing and run the game on my iPhone.

这个过程需要很多时间,所以问题是是否有有什么方法可以加速这个过程?

This process takes much time, so the question is if there are some ways to accelerate this process ?

推荐答案

Unity Remote 5 旨在做到.它减少了您在开发过程中将应用程序部署到 iOS 或 Android 设备的时间.您可以在此处获取 iOS 版本和此处.

Unity Remote 5 is designed to do. It reduces the amount of time you deploy your app to your iOS or Android device during development. You can get the iOS version here and the Android version here.

它支持以下传感器:

  • 触摸
  • 加速度计
  • 陀螺仪
  • 网络摄像头
  • 屏幕方向改变事件

最新版本 5.0 添加了对以下内容的支持:

The latest version which is 5.0 added support for the following:

安卓:

  • 连接到远程设备的游戏手柄
  • 指南针和位置数据 (GPS)

iOS:

  • 连接到远程设备的 MFi 游戏手柄(需要 Unity 5.4)
  • 3D Touch 和 Apple Pencil 支持
  • Apple TV 设备
  • 指南针和位置数据 (GPS)

当您下载上面链接的应用程序时,将您的 iOS 设备连接到您的计算机,打开该应用程序.

When you download the app linked above, connect your iOS device to your computer, open the app.

从 Unity 编辑器,转到编辑->项目设置->编辑器然后从设备下拉菜单中选择您的设备(iOS).点击播放,您将能够在编辑器中测试您的触控功能.

From Unity Editor, go to Edit->Project Settings->Editor then chose your device(iOS) from the device drop down menu. Click play and you will be able to test your touch functions from the Editor.

即使使用此应用程序,也建议偶尔在实际设备上测试您的应用程序.因此,至少每天执行一次以确保一切正常.

Even with this App, it is recommended to test your app on the actual device once in while. So at-least, do this once in a day to make sure everything is working as it should.

这篇关于如何为移动设备 iOS/Android 统一加速构建和运行过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆