Unity remote как настроить

Unity Remote 3 (УСТАРЕВШЕЕ)

Unity Remote 3 (далее обозначается как Unity Remote) – это приложение, которое позволяет использовать iOS-устройство в качестве пульта дистанционного управления для проекта в Unity. Это полезно во время разработки, так как тестировать проект в редакторе с дистанционным управлением намного быстрее, чем собирать и запускать его на устройстве после каждого изменения.

УСТАРЕВШЕЕ

Мы заменили Unity Remote 3 новым Unity Remote 4.

Где я могу найти Unity Remote?

Unity remote можно бесплатно загрузить из AppStore. Если вы предпочитаете собирать и запускать приложение самостоятельно, вы можете загрузить исходный код из раздела Unity Learn на сайте Unity.

Как я могу собрать Unity Remote?

Сперва скачайте здесь исходный код проекта и распакуйте архив в удобное вам место. Архив содержит XCode проект для сборки Unity Remote и его установки на ваше устройство.

Если вы уже создали provisioning profile и успешно устанавливали iOS сборки на ваше устройство, вам достаточно просто открыть XCode проект UnityRemote.xcodeproj. После того как запустится XCode, вам следует нажать “Build and Go” для установки приложения на ваше iOS устройство. Если вы никогда ранее не собирали и не запускали приложения, мы рекомендуем сперва попробовать собрать один из примеров Apple для ознакомления с XCode и iOS.

После установки Unity Remote, убедитесь, что ваше устройство подключено через Wi-Fi к той же сети, что и ваш компьютер со средой разработки, либо подключено к нему напрямую через USB. Запустите Unity Remote на вашем iPhone/iPad при запущенном Unity на вашем компьютере и выберите ваш компьютер из появившегося списка. Теперь, когда вы будете входить в режим проигрывания (Play Mode) в редакторе, ваше устройство будет выступать в роли пульта удалённого управления, который вы можете использовать для разработки и тестирования вашей игры. Вы можете управлять приложением с помощью устройство по беспроводной сети, и вы также увидите версию в низком разрешении вашего приложения на экране устройства.

Важно: Редактор Unity iOS не может идеально эмулировать аппаратную часть, так что вы можете не получить абсолютно точного поведения (производительность графики, отзывчивость на прикосновения, проигрывание звука и т.д.), которое вы получаете на настоящем устройстве.

XCode показывает странные ошибки при сборке и установке Unity Remote на моё устройство. Что мне делать?

Это значит, что идентификатор (Identifier) по умолчанию в проекте Unity Remote не совместим с вашим provisioning profile. Вам придётся вручную отредактировать этот идентификатор в XCode проекте. Идентификатор должен соответствовать вашему provisioning profile.

Вам потребуется создать AppID, оканчивающийся звёздочкой, если вы ещё этого не сделали; вы можете сделать это на Program Portal в Apple iPhone Developer Program. Сперва зайдите в Program Portal и выберите вкладку AppIDs. Затем, нажмите кнопку Add ID в верхнем правом углу и введите ваш обычный идентификатор бандла, оканчивающийся точкой и звёздочкой (например, com.mycompany.*) в поля App ID Bundle Seed ID и Bundle Identifier. Добавьте новый AppID в ваш provisioning profile, затем скачайте и переустановите его. Не забудьте после этого перезапустить XCode. Если у вас возникли какие-либо проблемы в процессе создания AppID, ознакомьтесь с разделом Provisioning How-to на сайте Apple.

Не забудьте поменять идентификатор (Identifier) перед установкой Unity Remote на ваше устройство.

Откройте проект Unity Remote в XCode. В меню выберите Project->Edit Active Target “Unity Remote” . Это приведёт к открытию окна с заголовком Target “Unity Remote” Info. Выберите вкладку Properties. Измените поле свойства Identifier с com.unity3d.UnityRemote на идентификатор бандла в вашем AppID, заканчивающийся на “.” (точкой) и добавьте “UnityRemote”. Например, если ваш provisioning profile содержит ######.com.mycompany.* AppID, тогда поменяйте поле Identifier на com.mycompany.UnityRemote.

Читайте также:  Доплаты работала не сообщила

Далее, выберите в меню Build->Clean all targets и снова скомпилируйте и установите Unity Remote. Возможно вам также потребуется поменять активную версию SDK с Simulator на Device — 2.0 | Release. Использование SDK 2.0 — не проблема, даже если ваше устройство работает под более новой версией OS. | Release. There is no problem using SDK 2.0 even if your device runs a newer version of the OS.

Я получаю очень низкое качество графики, когда запускаю свою игру в Unity Remote. Что я могу сделать, чтобы её улучшить?

Когда вы используете Unity Remote, игра на самом деле работает на вашем Mac, в то время как её визуальное содержимое предаётся на устройство в потоке с сильным сжатием. В результате, то что вы видите на экране устройства — просто версия с низким разрешением того, как выглядело бы приложение. Чтобы проверить, как игра работает на устройстве, вам нужно собирать и выгружать её через File->Build & Run в редакторе Unity.

Unity Remote подтормаживает. Можно ли что-то с этим сделать?

Производительность Unity Remote сильно зависит от скорости передачи данных по сети Wi-Fi, качество сетевого оборудования и других факторов. Для наилучшей производительности, создайте ad-hoc сеть между вашим Mac и iOS устройством. Нажмите на иконку Airport в вашем Mac и выберите “Create Network”. Затем, введите имя и пароль и нажмите OK. На устройстве откройте Settings->Wi-Fi и выберите новую Wi-Fi сеть, которую вы только что создали. Запомните, что ad-hoc сеть – это беспроводное соединение, которое не использует беспроводную точку доступа. Потому у вас обычно не будет интернет-соединения во время использования ad-hoc сети.

Выключение Bluetooth на вашем Mac и на iPhone/iPad также поможет улучшить качество соединения.

Если вам не требуется просмотр игры на устройстве, вы можете отключить синхронизацию изображения в списке Remote machine (удалённых машин). Это снизит объём сетевого трафика, необходимого для удалённой работы.

Соединение с Unity Remote быстро теряется

Это может происходить из-за проблем с установкой или других факторов, которые не позволяют Unity Remote корректно работать. Попробуйте следующие шаги в указанной последовательности, проверяя не улучшится ли ситуация после каждого шага перед тем, как двигаться далее:-

  1. Сперва, проверьте включен ли Bluetooth. Для наилучшей производительности Bluetooth должен быть отключен и на Mac и на iOS устройстве.
  2. Удалите файл настроек, расположенный здесь:

/Library/Preferences/com.unity3d.UnityEditoriPhone.plist

  • Переустановите игру на ваш iPhone/iPad.
  • Переустановите Unity на ваш Mac.
  • В качестве последней попытки, откат к заводским настройкам (hard reset) на вашем iOS устройстве иногда может улучшить производительность Unity Remote.
  • Если вы всё ещё испытываете проблемы, попробуйте установить Unity Remote на другое устройство (по возможности в другом месте) и посмотреть, не улучшится ли работа приложения. Могут быть проблемы из-за радиочастотных помех или влияния другого программного обеспечения на производительность беспроводного адаптера на вашем Mac или iOS устройстве.

    Источник

    Unity Remote

    Unity Remote is a downloadable app designed to help with Android, iOS Apple’s mobile operating system. More info
    See in Glossary and tvOS development. The app connects with Unity while you are running your project in Play Mode from the Unity Editor. The visual output from the Editor is sent to the device’s screen, and the live inputs are sent back to the running project in Unity. This allows you to get a good impression of how your game really looks and handles on the target device, without the hassle of a full build for each test.

    Note: For Unity Remote to work, you need to have the Android SDK on your development machine.

    Unity Remote replaces the separate iOS and Android Remote apps used with earlier versions. Those older Remote apps are no longer supported.

    Older versions of Unity Remote are still available for use in Legacy projects; see Legacy Unity Remote documentation for more information on these versions.

    Device and Feature Support

    Unity Remote currently supports Android devices (on Windows and OS X via a USB connection) and iOS devices (iPhone, iPad, iPod touch and Apple TV, through USB on OS X and Windows with iTunes).

    The Game View of the running Unity project is duplicated on the device screen, but at a reduced framerate. The following input data from the device is also streamed back to the Editor:

    • Touch and stylus input
    • Accelerometer
    • Gyroscope
    • Device camera A component which creates an image of a particular viewpoint in your scene. The output is either drawn to the screen or captured as a texture. More info
      See in Glossary streams
    • Compass
    • GPS
    • Joystick names and input

    Note that the Remote app simply shows the visual output on the device and takes input from it. The game’s actual processing is still done by the Editor on the desktop machine — so its performance is not a perfect reflection of the built app.

    Obtaining and Using Unity Remote

    You can download Unity Remote for free in the form of a Unity project that you build yourself, or as a pre-built app from the device’s app store:

    • Android app from Google Play
    • iOS and tvOS apps from the App Store

    Once you’ve downloaded the app, install and run it on your device and connect the device to your computer using a USB cable.

    To enable Unity to work with your device, open the Editor settings in Unity (menu: Edit > Project Settings A broad collection of settings which allow you to configure how Physics, Audio, Networking, Graphics, Input and many other areas of your Project behave. More info
    See in Glossary , then select the Editor category) and select the device to use from the Unity Remote section:

    Note: To specify the location of your Android SDK, go to Edit > Preferences (Windows) or Unity > Preferences (Mac).

    Click the Play button in the Editor to see your game appear on the device and in the Unity game window as Unity connects to the Remote app. While the game plays, input from the device (accelerometer, etc.) is sent to your scripts A piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
    See in Glossary as if they were running on the device itself.

    Troubleshooting

    I have more than one device plugged in, but only one of them works with Unity

    Unity Remote doesn’t support multiple connected Android devices, and to resolve this, it automatically picks the first device it finds. However, it is fine to have multiple iOS/tvOS devices and one Android device connected at the same time, since you can select which one to use from the Editor settings (menu: Edit > Project Settings, then select the Editor category).

    I’m getting really poor graphics quality when running my game in Unity Remote

    When you use Unity Remote the game actually runs in the Editor, while its visual content is streamed to the target device. Since the bandwidth between the Editor and the device is limited, the stream must be compressed heavily for transmission. This compression A method of storing data that reduces the amount of storage space it requires. See Texture Compression, Animation Compression, Audio Compression, Build Compression.
    See in Glossary inevitably reduces the image quality.

    In the Unity Remote section of the Editor window (menu: Edit > Project Settings, then select the Editor category) you can switch the compression method between JPEG and PNG. PNG compression is “lossless” (so the image quality doesn’t degrade) but uses more bandwidth than JPEG. A downsized image has lower bandwidth requirements than one at full resolution. By changing these settings, you can trade image accuracy off against framerate as necessary. When using a lower resolution, be aware that Unity Remote downsizes images for better performance.

    Bear in mind that Unity Remote is only really intended to give a quick approximate check of how your game will look and feel when running on the device. Make sure that you occasionally do a full build and test the “real” app.

    Источник

    Unity Remote

    Unity Remote is a downloadable app designed to help with Android, iOS Apple’s mobile operating system. More info
    See in Glossary and tvOS development. The app connects with Unity while you are running your project in Play Mode from the Unity Editor. The visual output from the Editor is sent to the device’s screen, and the live inputs are sent back to the running project in Unity. This allows you to get a good impression of how your game really looks and handles on the target device, without the hassle of a full build for each test.

    Note: For Unity Remote to work, you need to have the Android SDK on your development machine.

    Unity Remote replaces the separate iOS and Android Remote apps used with earlier versions. Those older Remote apps are no longer supported.

    Device and feature Support

    Unity Remote currently supports Android devices (on Windows and OS X via a USB connection) and iOS devices (iPhone, iPad, iPod touch and Apple TV, through USB on OS X and Windows with iTunes).

    The Game View of the running Unity project is duplicated on the device screen, but at a reduced framerate. The following input data from the device is also streamed back to the Editor:

    • Touch and stylus input
    • Accelerometer
    • Gyroscope
    • Device camera A component which creates an image of a particular viewpoint in your scene. The output is either drawn to the screen or captured as a texture. More info
      See in Glossary streams
    • Compass
    • GPS
    • Joystick names and input

    Note that the Remote app simply shows the visual output on the device and takes input from it. The game’s actual processing is still done by the Editor on the desktop machine — so its performance is not a perfect reflection of the built app.

    Obtaining and using Unity Remote

    You can download Unity Remote for free in the form of a Unity project that you build yourself, or as a pre-built app from the device’s app store:

    • Android app from Google Play
    • iOS and tvOS apps from the App Store

    Once you’ve downloaded the app, install and run it on your device and connect the device to your computer using a USB cable.

    To enable Unity to work with your device, open the Editor settings in Unity (menu: Edit > Project Settings A broad collection of settings which allow you to configure how Physics, Audio, Networking, Graphics, Input and many other areas of your project behave. More info
    See in Glossary , then select the Editor category) and select the device to use from the Unity Remote section:

    Note: To specify the location of your Android SDK, go to Edit > Preferences (Windows) or Unity > Preferences (Mac).

    Click the Play button in the Editor to see your game appear on the device and in the Unity game window as Unity connects to the Remote app. While the game plays, input from the device (accelerometer, etc.) is sent to your scripts A piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
    See in Glossary as if they were running on the device itself.

    Troubleshooting

    I have more than one device plugged in, but only one of them works with Unity

    Unity Remote doesn’t support multiple connected Android devices, and to resolve this, it automatically picks the first device it finds. However, it is fine to have multiple iOS/tvOS devices and one Android device connected at the same time, since you can select which one to use from the Editor settings (menu: Edit > Project Settings, then select the Editor category).

    I’m getting really poor graphics quality when running my game in Unity Remote

    When you use Unity Remote the game actually runs in the Editor, while its visual content is streamed to the target device. Since the bandwidth between the Editor and the device is limited, the stream must be compressed heavily for transmission. This compression A method of storing data that reduces the amount of storage space it requires. See Texture Compression, Animation Compression, Audio Compression, Build Compression.
    See in Glossary inevitably reduces the image quality.

    In the Unity Remote section of the Editor window (menu: Edit > Project Settings, then select the Editor category) you can switch the compression method between JPEG and PNG. PNG compression is “lossless” (so the image quality doesn’t degrade) but uses more bandwidth than JPEG. A downsized image has lower bandwidth requirements than one at full resolution. By changing these settings, you can trade image accuracy off against framerate as necessary. When using a lower resolution, be aware that Unity Remote downsizes images for better performance.

    Bear in mind that Unity Remote is only really intended to give a quick approximate check of how your game will look and feel when running on the device. Make sure that you occasionally do a full build and test the “real” app.

    Источник

    Оцените статью