Note: Universal Windows Platform only shows in the Platform list if you’re using Unity on a Windows computer.
Unity doesn’t support Windows Phone development.
Building UWP applications with Unity
The main workflow when building a game or application for UWP using Unity is as follows:
When you click Build in the Build Settings window:
Unity generates and exports a Visual Studio Project.
Open the generated Project’s .sln file in Visual Studio.
Use Visual Studio to build your final application.
When you click Build And Run, Unity builds an app executable that can run independently.
UWP Build Settings
Use these settings to configure how Unity builds your application.
Setting
Function
Target Device
Choose from the following options to build your app for any device, or select a specific device: Any device, PC, Mobile, or HoloLens.
Architecture
Select the type of CPU to build for (only applies to Build And Run).
x64
64-bit CPU.
x86
32-bit CPU.
ARM
32-bit ARM CPU.
ARM64
64-bit ARM CPU.
Build Type
Select the type of Visual Studio project or build to generate.
XAML Project
Visual Studio project that integrates Unity within a full XAML environment. This results in some performance loss, but lets you use XAML elements in your application.
D3D Project
Visual Studio project that integrates Unity in a basic app window. This results in the best performance.
Executable Only
Hosts the project in a pre-built executable for rapid iteration. This setting has the quickest iteration speed because it doesn’t require you to build the generated project in Visual Studio. It offers the same performance as D3D Project builds.
Target SDK Version
The Windows 10 SDK installed on the local PC to build the application against. This setting is only relevant when calling Windows 10 APIs directly from scripts.
Note: Unity requires the base Windows 10 SDK version 10.0.10240.0 or higher for building UWP apps, and doesn’t support Windows 8/8.1 SDKs.
Minimum Platform Version
Minimum Windows 10 release version required to run the app.
Note: This setting is only relevant if you’re using Windows features or APIs that aren’t available in the base Windows 10 version (10.0.10240).
Visual Studio Version
Target a specific Visual Studio release if you have multiple versions installed.
Build and Run on
Select the target device or transport to deploy and launch the app during Build And Run.
Local Machine
Deploys and launches the app on the local PC.
USB Device
Deploys and launches the app on a remote device over a USB connection.
Remote Device (via Device Portal)
Deploys and launches the app to a connected device over the Device Portal transport.
To deploy over the Device Portal, you must enter the connection and authentication information in these additional fields:
For more information, see documentation on Windows Device Portal deployment.
Build Configuration
Select the build type (only applies to Build And Run). Note: These build configurations are the same as those available in the Visual Studio project that Unity generates.
Debug
Produces a build that contains additional code you can use for debugging, and enables the Profiler A window that helps you to optimize your game. It shows how much time is spent in the various areas of your game. For example, it can report the percentage of time spent rendering, animating, or in your game logic. More info See in Glossary for your build.
Release
Produces a build that has debug code stripped out, and enables the Profiler for your build.
Master
Produces a build that is fully optimized for release.
Copy References
Disable this setting to allow the generated solution to reference Unity files from Unity’s installation folder instead of copying them to the build folder. This can save up to 10 GB of disk space, but you can’t copy the build folder to another PC. Unity also builds your application faster when you disable this setting.
Copy PDB files
Enable this setting to include Microsoft program database (PDB) files in the built Standalone Player. PDB files contain debugging information for your application, but might increase the size of your Player. For more information, see documentation on Windows debugging.
Development Build A development build includes debug symbols and enables the Profiler. More info See in Glossary
A development build includes scripting debug symbols. When you select the Development Build setting, you can also select the Autoconnect Profiler, Script Debugging, and Scripts Only Build setting. It also enables the DEVELOPMENT_BUILD #define.
Once enabled, Unity only rebuilds the scripts in your application, and leaves data files from a previously executed build intact. It significantly improves iteration times if you only change the code in your application.
Одной из популярной программ для создания игр является игровой движок Unity 5. О распространенности и популярности этого движка в данной статье мы рассказывать не будем, перейдем сразу к установке и запуску Unity 5 на Windows 7 х64.
Для начала, перейдем на сайт разработчика и скачаем дистрибутив Unity, вернее так называемый web установщик. На главной странице сайта вам необходимо нажать на кнопку ПОЛУЧИТЕ Unity 5.
Далее вы увидите возможности бесплатной версии Unity и возможности версии Pro. Мы будем использовать бесплатную версию, поэтому нажимаем БЕСПЛАТНАЯ ЗАГРУЗКА. На следующей странице как раз и находится заветная кнопочка ЗАГРУЗИТЬ УСТАНОВЩИК. Так же здесь можно увидеть версию последнего релиза, дату выпуска, размер установщика и выбрать платформу Windows или MacOS.
Итак, загружаем и запускаем установщик.
В этом окне веб установщик предлагает выбрать какие пакеты необходимо скачать для удобной работы в Unity. Изначально стоят галочки некоторых пунктах:
Unity 5.3.2 — это собственно сама среда разработки,
Documentation — здесь находятся достаточно подробный материал по работе с Unity,
Web Player — инструмент для создания браузерных приложений и игр, размер не большой, всего 7 мегабайт, оставим, а вообще если вы не собираетесь создавать игры или приложения для браузера это вам не нужно,
Standart Assets — так называемых стандартный ассет, в нем находятся примеры использования скриптов, физических объектов, текстуры, материалы и многое другое,
Microsoft Visual Studio Tools for Unity — в Unity есть встроенный редактор скриптов это Mono Develop, но если вам больше подходит Microsoft Visual Studio можете оставить галочку на этом пункте,
Windows Build Support — служит для компиляции вашего проекта под ОС Windows, собственно если вы собираетесь создавать игры и под другие операционные системы, следует поставить галочку в установщике в соответствующих пунктах.
Если определились с выбором компонентов, выбираем место куда установится Unity и ждем пока все это загрузится.
После всех пройденных этапов загрузки и установки, на рабочем столе появится ярлык Unity, установщик можно закрывать.
Итак пробуем, первым делом запускается окно с вводом логина и пароля, если у вас есть учетная запись созданная на сайте Unity можете смело вводить свои данные, если нет, можете зарегистрироваться или работать offline, нажав на кнопку work offline.
Далее окно выбора проекта, как токовых проектов у вас еще не создано, его необходимо создать, нажав на кнопку NEW. Вводим название проекта и место его расположения, так же выбрать 3D или 2D (по умолчанию стоит 3D) и нажать Create project. Созданный вами новый проект появится в окне Project, для его запуска достаточно нажать на него и у вас запустится Unity.
Unity universal windows platform build support что это
Universal Windows Platform (UWP) build settings
Note: Universal Windows Platform only shows in the Platform list if you’re using Unity on a Windows computer.
Unity doesn’t support Windows Phone development.
Building UWP applications with Unity
The main workflow when building a game or application for UWP using Unity is as follows:
When you click Build in the Build Settings window:
Unity generates and exports a Visual Studio Project.
Open the generated Project’s .sln file in Visual Studio.
Use Visual Studio to build your final application.
When you click Build And Run, Unity builds an app executable that can run independently.
UWP Build Settings
Use these settings to configure how Unity builds your application.
Setting
Function
Target Device
Choose from the following options to build your app for any device, or select a specific device: Any device, PC, Mobile, or HoloLens.
Architecture
Select the type of CPU to build for (only applies to Build And Run).
x64
64-bit CPU.
x86
32-bit CPU.
ARM
32-bit ARM CPU.
ARM64
64-bit ARM CPU.
Build Type
Select the type of Visual Studio project or build to generate.
XAML Project
Visual Studio project that integrates Unity within a full XAML environment. This results in some performance loss, but lets you use XAML elements in your application.
D3D Project
Visual Studio project that integrates Unity in a basic app window. This results in the best performance.
Executable Only
Hosts the project in a pre-built executable for rapid iteration. This setting has the quickest iteration speed because it doesn’t require you to build the generated project in Visual Studio. It offers the same performance as D3D Project builds.
Target SDK Version
The Windows 10 SDK installed on the local PC to build the application against. This setting is only relevant when calling Windows 10 APIs directly from scripts.
Note: Unity requires the base Windows 10 SDK version 10.0.10240.0 or higher for building UWP apps, and doesn’t support Windows 8/8.1 SDKs.
Minimum Platform Version
Minimum Windows 10 release version required to run the app.
Note: This setting is only relevant if you’re using Windows features or APIs that aren’t available in the base Windows 10 version (10.0.10240).
Visual Studio Version
Target a specific Visual Studio release if you have multiple versions installed.
Build and Run on
Select the target device or transport to deploy and launch the app during Build And Run.
Local Machine
Deploys and launches the app on the local PC.
USB Device
Deploys and launches the app on a remote device over a USB connection.
Remote Device (via Device Portal)
Deploys and launches the app to a connected device over the Device Portal transport.
To deploy over the Device Portal, you must enter the connection and authentication information in these additional fields:
For more information, see documentation on Windows Device Portal deployment.
Build Configuration
Select the build type (only applies to Build And Run). Note: These build configurations are the same as those available in the Visual Studio project that Unity generates.
Debug
Produces a build that contains additional code you can use for debugging, and enables the Profiler A window that helps you to optimize your game. It shows how much time is spent in the various areas of your game. For example, it can report the percentage of time spent rendering, animating or in your game logic. More info See in Glossary for your build.
Release
Produces a build that has debug code stripped out, and enables the Profiler for your build.
Master
Produces a build that is fully optimized for release.
Copy References
Disable this setting to allow the generated solution to reference Unity files from Unity’s installation folder instead of copying them to the build folder. This can save up to 10 GB of disk space, but you can’t copy the build folder to another PC. Unity also builds your application faster when you disable this setting.
Copy PDB files
Enable this setting to include Microsoft program database (PDB) files in the built Standalone Player. PDB files contain debugging information for your application, but might increase the size of your Player. For more information, see documentation on Windows debugging.
Development Build A development build includes debug symbols and enables the Profiler. More info See in Glossary
A development build includes scripting debug symbols. When you select the Development Build setting, you can also select the Autoconnect Profiler, Script Debugging, and Scripts Only Build setting. It also enables the DEVELOPMENT_BUILD #define.
Once enabled, Unity only rebuilds the scripts in your application, and leaves data files from a previously executed build intact. It significantly improves iteration times if you only change the code in your application.
Universal Windows Platform (UWP) build settings
Note: Universal Windows Platform only shows in the Platform list if you’re using Unity on a Windows computer.
Unity doesn’t support Windows Phone development.
Building UWP applications with Unity
The main workflow when building a game or application for UWP using Unity is as follows:
When you click Build in the Build Settings window:
Unity generates and exports a Visual Studio Project.
Open the generated Project’s .sln file in Visual Studio.
Use Visual Studio to build your final application.
When you click Build And Run, Unity builds an app executable that can run independently.
UWP Build Settings
Use these settings to configure how Unity builds your application.
Setting
Function
Target Device
Choose from the following options to build your app for any device, or select a specific device: Any device, PC, Mobile, or HoloLens.
Architecture
Select the type of CPU to build for (only applies to Build And Run).
x64
64-bit CPU.
x86
32-bit CPU.
ARM
32-bit ARM CPU.
ARM64
64-bit ARM CPU.
Build Type
Select the type of Visual Studio project or build to generate.
XAML Project
Visual Studio project that integrates Unity within a full XAML environment. This results in some performance loss, but lets you use XAML elements in your application.
D3D Project
Visual Studio project that integrates Unity in a basic app window. This results in the best performance.
Executable Only
Hosts the project in a pre-built executable for rapid iteration. This setting has the quickest iteration speed because it doesn’t require you to build the generated project in Visual Studio. It offers the same performance as D3D Project builds.
Target SDK Version
The Windows 10 SDK installed on the local PC to build the application against. This setting is only relevant when calling Windows 10 APIs directly from scripts.
Note: Unity requires the base Windows 10 SDK version 10.0.10240.0 or higher for building UWP apps, and doesn’t support Windows 8/8.1 SDKs.
Minimum Platform Version
Minimum Windows 10 release version required to run the app.
Note: This setting is only relevant if you’re using Windows features or APIs that aren’t available in the base Windows 10 version (10.0.10240).
Visual Studio Version
Target a specific Visual Studio release if you have multiple versions installed.
Build and Run on
Select the target device or transport to deploy and launch the app during Build And Run.
Local Machine
Deploys and launches the app on the local PC.
USB Device
Deploys and launches the app on a remote device over a USB connection.
Remote Device (via Device Portal)
Deploys and launches the app to a connected device over the Device Portal transport.
To deploy over the Device Portal, you must enter the connection and authentication information in these additional fields:
For more information, see documentation on Windows Device Portal deployment.
Build Configuration
Select the build type (only applies to Build And Run). Note: These build configurations are the same as those available in the Visual Studio project that Unity generates.
Debug
Produces a build that contains additional code you can use for debugging, and enables the Profiler A window that helps you to optimize your game. It shows how much time is spent in the various areas of your game. For example, it can report the percentage of time spent rendering, animating or in your game logic. More info See in Glossary for your build.
Release
Produces a build that has debug code stripped out, and enables the Profiler for your build.
Master
Produces a build that is fully optimized for release.
Copy References
Disable this setting to allow the generated solution to reference Unity files from Unity’s installation folder instead of copying them to the build folder. This can save up to 10 GB of disk space, but you can’t copy the build folder to another PC. Unity also builds your application faster when you disable this setting.
Copy PDB files
Enable this setting to include Microsoft program database (PDB) files in the built Standalone Player. PDB files contain debugging information for your application, but might increase the size of your Player. For more information, see documentation on Windows debugging.
Development Build A development build includes debug symbols and enables the Profiler. More info See in Glossary
A development build includes scripting debug symbols. When you select the Development Build setting, you can also select the Autoconnect Profiler, Script Debugging, and Scripts Only Build setting. It also enables the DEVELOPMENT_BUILD #define.
Once enabled, Unity only rebuilds the scripts in your application, and leaves data files from a previously executed build intact. It significantly improves iteration times if you only change the code in your application.
Записки IT специалиста
Технический блог специалистов ООО»Интерфейс»
Мечта об универсальных приложениях UWP мертва
У Microsoft была мечта о Windows 8, которая включала бы универсальные приложения Windows, распространяющиеся на телефоны, планшеты, ПК и даже консоли Xbox. План состоял в том, чтобы разработчики могли написать одно приложение для всех этих устройств, и оно волшебным образом работало бы везде. Эта мечта начала разваливаться после провала Windows Phone, с тех пор прошлом много времени, и похоже, что теперь все закончено.
Microsoft потратила годы на то, чтобы подтолкнуть разработчиков к созданию специальных приложений для универсальной платформы Windows (Universal Windows Platform, UWP), но сегодня она забила последний гвоздь в гроб UWP.
Компания наконец-то разрешила разработчикам добавлять полностью нативные игры Win32 в Microsoft Store, а это значит, что многие игры, публикуемые разработчиками в других популярных магазинах, таких как Steam, теперь не нужно перестраивать для UWP.
Фил Спенсер, глава игрового подразделения Microsoft
Это большой шаг вперед для магазина приложений Windows, учитывая, что игры являются одними из самых загружаемых программ из магазинов. Ранее разработчики были вынуждены публиковать игры для Windows 10 через универсальную платформу Windows, которая просто не имеет того уровня возможностей, которые привыкли видеть в Windows на протяжении многих лет.
Я слышал много историй, когда инженеры и разработчики Microsoft жаловались на то, что UWP накладывает ограничения на свои приложения, и сторонним разработчикам часто приходилось выбирать между созданием приложения UWP для Windows 10 или традиционным настольным приложением, которое будет работать в Windows 7, Windows 8 и Windows 10.
Джо Бельфиоре, вице-президент Microsoft и руководитель разработки Windows
Microsoft постоянно расширяла свое определение UWP, чтобы позволить разработчикам переупаковывать настольные приложения в Microsoft Store, но первоначальное видение приложений нового стиля, которые будут работать на ПК, телефонах, планшетах, Xbox и HoloLens становилось все более маловероятным.
Microsoft также приостановила работы над своей версией Office с поддержкой сенсорного ввода, предпочитая вместо этого сосредоточиться на облачных решениях, iOS, Android и настольных приложениях. Office всегда был центральным элементом UWP и хорошим примером того, как можно создать большое и требовательное приложение на новой платформе. Microsoft наконец прислушалась к разработчикам и больше не пытается навязывать им UWP.
В отдельном интервью ZDNet Галло рассказал, что «к тому времени, когда мы закончим, останутся только «приложения для Windows». Еще не все готово, но компания стремится сделать каждую функцию UWP доступной для разработчиков.
В конечном итоге, это хорошая новость как для разработчиков, так и для пользователей Windows. Теперь мы должны увидеть больше игр в Магазине Microsoft, которые работают так, как того ожидают геймеры, и, надеемся, больше приложений. Магазин Windows был полон барахла на протяжении многих лет, и Microsoft с трудом привлекала туда разработчиков.
Старый подход Microsoft к магазину вызывал резкую критику закрытой платформы в Windows 10 и попыток компании заставить разработчиков распространять приложения через Microsoft Store. Microsoft даже создала версии Windows S и Windows RT в которых установка обычных приложений была заблокирована.
Автор: Том Уоррен (Tom Warren)
Помогла статья? Поддержи автора и новые статьи будут выходить чаще:
Или подпишись на наш Телеграм-канал:
Что такое Universal Windows Platform (UWP)?
Универсальная платформа Windows (UWP) – это специальная платформа для создания приложений на Windows 10. Вы можете разрабатывать приложения для UWP с помощью всего одного набора API, одного пакета приложений и одного магазина для доступа ко всем устройствам Windows 10 – ПК, планшета, телефона, Xbox, HoloLens, Surface Hub и других. Легче поддерживать несколько размеров экрана, а также различные модели взаимодействия, будь то сенсор, мышь и клавиатура, игровой контроллер или ручка. В основе приложений UWP лежит идея, что пользователи хотят, чтобы их работа, их задачи были мобильными через ВСЕ устройства, чтобы можно было использовать любое устройство, наиболее удобное или производительное для конкретной задачи.
UWP является гибким: вам не нужно использовать C# и XAML, если вы этого не хотите. Вам нравится развиваться в Unity или MonoGame? Предпочитаете JavaScript? Не проблема, используйте все, что хотите. У вас есть настольное приложение C++, которое вы хотите расширить с помощью функций UWP и продавать в магазине? И тут все будет работать.
В итоге вы можете потратить свое время на работу со знакомыми языками программирования, фреймворками и API-интерфейсами, все в одном проекте, и иметь тот же самый код, который работает на огромном диапазоне оборудования Windows из существующих сегодня. После того, как вы написали свое приложение UWP, вы можете опубликовать его в магазине на обозрение всего мира.
Итак, что такое UWP-приложение?
Элементы пользовательского интерфейса используют эффективные пиксели, поэтому они могут отображать макет в зависимости от количества пикселей экрана, доступных на устройстве. И они хорошо работают с несколькими типами ввода, такими как клавиатура, мышь, сенсорный экран, ручка и контроллеры Xbox One. Если вам нужно дополнительно адаптировать свой пользовательский интерфейс к определенному размеру экрана или устройству, новые панели макетов и инструменты помогут вам в этом.
Используйте язык, который вы уже знаете
Microsoft Visual Studio 2017 предоставляет шаблон приложения UWP для каждого языка, который позволяет вам создать единый проект для всех устройств. Когда ваша работа будет завершена, вы можете создать пакет приложений и отправить его в Windows Store из Visual Studio, чтобы сделать ваше приложение доступным для клиентов на любом устройстве Windows 10.
Приложения UWP оживают в Windows
Наконец, вы можете использовать данные о роуминге и Windows Credential Locker, чтобы обеспечить постоянный роуминг на всех экранах Windows, где пользователи запускают ваше приложение. Данные о роуминге дают вам простой способ сохранить пользовательские настройки и настройки в облаке, не создавая собственную инфраструктуру синхронизации. И вы можете хранить учетные данные пользователя в хранилище учетных данных, где безопасность и надежность являются главным приоритетом.
Монетизируйте ваше приложение
Как начать?
Более подробный обзор UWP читайте в официальном Руководстве по приложениям для универсальной платформы Windows. Затем ознакомьтесь с настройкой Get set up, чтобы загрузить инструменты, необходимые для начала создания приложений, и напишите свое первое приложение!
Социальная инженерия с помощью программ Universal Windows Platform (APPX)
TL;DR: В APPX-файл Universal Windows Platform можно упаковать обычный exe-файл, который будет запускаться в Windows 10 (сборка 1607 и новее) примерно так же, как обычные exe-файлы. Это можно использовать для атак социальной инженерии, с помощью рассылки через email — почтовые провайдеры не блокируют файлы APPX. Файл должен быть подписан действующей цифровой подписью.
Universal Windows Platform
Universal Windows Platform — (сравнительно) новый стандарт для создания универсальных приложений под Windows 10, Windows 10 Mobile, Xbox One и Hololens. Стандарт появился с выходом Windows 10, и предоставляет API с ограничением привилегий и изоляцией, формат контейнера и метаданных внутри него. UWP-приложения широко представлены в Microsoft Store. Они самодостаточны, безопасны, не требуют прав администратора для установки, хранят настройки в строго отведённых местах, и могут быть удалены начисто, прямо из «пуска».
UWP — попытка Microsoft избавиться от старых архитектурных подходов к разработке программ: внедрить разделение привилегий так, как это сделано на мобильных платформах, уйти от WinAPI GUI с пиксельной сеткой (для полноценной поддержки экранов любой плотности пикселей). Программы UWP можно писать на C#, C++, VB и JS, а в качестве GUI-фреймфорка предлагается к использованию XAML, DirectX и HTML.
До недавнего времени, UWP-программы могли быть только изолированными, но в сборке Windows 10 1607 Microsoft реализовала Desktop Bridge — возможность упаковки любых Win32-программ в виде UWP, без использования UWP API, ограничений привилегий и изоляции. Эта функция открывает простор для атак социальной инженерии.
Формат APPX
UWP стандартизирует файловый формат APPX — обычный ZIP-архив, с определённой структурой. В APPX-файле должен быть AppxManifest.xml — файл с описанием содержимого пакета, который можно сгенерировать или создать самостоятельно. В AppxManifest.xml указано название программы, описание, иконка, требуемые привилегии, имя файла для запуска и точка входа внутри него. Чтобы APPX-файл можно было установить, он должен быть подписан действующей цифровой подписью с возможностью подписи кода, доверенного удостовещяющего центра.
Самый простой вариант упаковки существующего Win32 exe-файла в appx с помощью Desktop Bridge — написать файл манифеста вручную, и создать appx-контейнер с помощью утилиты makeappx.exe, входящей в состав Windows SDK.
Затем подписать с помощью signtool.exe:
Преимущества APPX для социальной инженерии
APPX-файлы можно использовать в почтовых рассылках, в качестве замены exe-файлам, в случах, когда почтовый сервер фильтрует письма с exe-вложениями. Установка APPX происходит в один клик, не требует прав администратора. В установщике галочка запуска программы после установки отмечена по умолчанию, и программа сразу запустится, если пользователь её не уберет.
Все популярные почтовые сервисы не блокируют APPX-файлы в приложениях к письму. У Gmail есть странная особенность: файл должен быть размером больше 4 мегабайт.