Difference between revisions of "Platforms"

From PowerUI
Jump to: navigation, search
(Created page with "We want to make using PowerUI as simple as it possibly can be, especially on mobile platforms. If you're developing a range of screen sizes and pixel densities, see the Mult...")
 
(Android)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
We want to make using PowerUI as simple as it possibly can be, especially on mobile platforms. If you're developing a range of screen sizes and pixel densities, see the [[Multiple_Resolutions|resolution guide]] too.
+
We want to make using PowerUI as simple as it possibly can be. It's been built from scratch to make it straight forward for it to "just work" on any Unity platform. If you're developing a range of screen sizes and pixel densities, see the [[Multiple_Resolutions|resolution guide]] too.
  
== Android ==
+
''As a general rule, if you get a build error, tick the "no runtime" Nitro setting and try again. If it's still erroring, it's a bug - please let us know!''
  
PowerUI just works on Android.
+
== Android and Standalone ==
  
== iOS ==
+
PowerUI just works on Android/ Standalone builds.
 +
 
 +
== WebGL ==
 +
 
 +
See the [[IL2CPP|IL2CPP]] page.
 +
 
 +
== iOS (and some consoles) ==
  
 
iOS, like some consoles, does not allow runtime compilation. That causes some complicated problems for Javascript (and it's why PowerUI's Javascript is different). However, it can be still used so long as you precompile it first:
 
iOS, like some consoles, does not allow runtime compilation. That causes some complicated problems for Javascript (and it's why PowerUI's Javascript is different). However, it can be still used so long as you precompile it first:
Line 11: Line 17:
 
[[File:Nitro-precompile.png]]
 
[[File:Nitro-precompile.png]]
  
''Window -> PowerUI -> Nitro Settings''
+
''Window > PowerUI > Nitro Settings''
  
 
Power tip: The PowerUI precompiler runs when you check the box and when a HTML file changes whilst Unity is open. If you add any new Nitro you should recheck the box before you build your app to be sure it has all precompiled.  
 
Power tip: The PowerUI precompiler runs when you check the box and when a HTML file changes whilst Unity is open. If you add any new Nitro you should recheck the box before you build your app to be sure it has all precompiled.  
Line 17: Line 23:
 
If you're also using [[IL2CPP|IL2CPP]] with code stripping turned on, see [[IL2CPP|the wiki entry about IL2CPP]].
 
If you're also using [[IL2CPP|IL2CPP]] with code stripping turned on, see [[IL2CPP|the wiki entry about IL2CPP]].
  
== Windows Phone ==
+
== Windows Phone and Universal/ Hololens ==
  
 
Windows Phone is much more restrictive than iOS - you need to entirely remove the Nitro compiler. Fortunately that just involves ticking both boxes:
 
Windows Phone is much more restrictive than iOS - you need to entirely remove the Nitro compiler. Fortunately that just involves ticking both boxes:
Line 23: Line 29:
 
[[File:Nitro-precompile-nort.png]]
 
[[File:Nitro-precompile-nort.png]]
  
''Window -> PowerUI -> Nitro Settings''
+
''Window > PowerUI > Nitro Settings''
 +
 
 +
Note that you can still use Nitro like before - you just can't have any scripts compiled at runtime.

Latest revision as of 11:57, 25 July 2017

We want to make using PowerUI as simple as it possibly can be. It's been built from scratch to make it straight forward for it to "just work" on any Unity platform. If you're developing a range of screen sizes and pixel densities, see the resolution guide too.

As a general rule, if you get a build error, tick the "no runtime" Nitro setting and try again. If it's still erroring, it's a bug - please let us know!

Android and Standalone

PowerUI just works on Android/ Standalone builds.

WebGL

See the IL2CPP page.

iOS (and some consoles)

iOS, like some consoles, does not allow runtime compilation. That causes some complicated problems for Javascript (and it's why PowerUI's Javascript is different). However, it can be still used so long as you precompile it first:

Nitro-precompile.png

Window > PowerUI > Nitro Settings

Power tip: The PowerUI precompiler runs when you check the box and when a HTML file changes whilst Unity is open. If you add any new Nitro you should recheck the box before you build your app to be sure it has all precompiled.

If you're also using IL2CPP with code stripping turned on, see the wiki entry about IL2CPP.

Windows Phone and Universal/ Hololens

Windows Phone is much more restrictive than iOS - you need to entirely remove the Nitro compiler. Fortunately that just involves ticking both boxes:

Nitro-precompile-nort.png

Window > PowerUI > Nitro Settings

Note that you can still use Nitro like before - you just can't have any scripts compiled at runtime.