View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.1
- Last updated
- First released
- Unity version
- 5.0.0 or later
- Package size
- 42 KB
- Files
- 45
- Favorites
- 25
- Views in the past week
- 3
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $5.00 on
Target Platform - for multi-platform development
Price $5.00
Buy on Asset Store (opens in new tab)
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 4
Target Platform - for multi-platform development screenshot 1
About this asset
Target Platform boost your development for multiple platforms.
Features:
- Make GameObject and it's components work only on specific platform
- Enable to check whether the Unity's built-in symbols are defined at runtime
- Shorthands of UnityEngine.RuntimePlatform
- All source codes are included!
For example, if you have a button to display on only iOS, you can actually do it by simply attaching a component that specifies iOS to GameObject. Even if you specify multiple platforms only on Android or Unity editor, you just combine the components.
You can specify all 20+ platforms that can be built with Unity 5.0 ~ 2017.1!
Code using directives such as:
#if UNITY_IOS ~ #endif
helps to reduce the capacity of the application at compile time, but in many cases you should want to use if-statement and the bool value. With the Target Platform, you can write it as:
if (UnitySymbol.UNITY_WII)
This helps reduce compilation errors that occur for the first time when changing or building a build target.
Instead of writing:
if(Application.platform
== RuntimePlatform.Android)
you can write:
if(Runtime.Platform.isAndroid)
Of course, full source codes are included!
Features:
- Make GameObject and it's components work only on specific platform
- Enable to check whether the Unity's built-in symbols are defined at runtime
- Shorthands of UnityEngine.RuntimePlatform
- All source codes are included!
For example, if you have a button to display on only iOS, you can actually do it by simply attaching a component that specifies iOS to GameObject. Even if you specify multiple platforms only on Android or Unity editor, you just combine the components.
You can specify all 20+ platforms that can be built with Unity 5.0 ~ 2017.1!
Code using directives such as:
#if UNITY_IOS ~ #endif
helps to reduce the capacity of the application at compile time, but in many cases you should want to use if-statement and the bool value. With the Target Platform, you can write it as:
if (UnitySymbol.UNITY_WII)
This helps reduce compilation errors that occur for the first time when changing or building a build target.
Instead of writing:
if(Application.platform
== RuntimePlatform.Android)
you can write:
if(Runtime.Platform.isAndroid)
Of course, full source codes are included!
From the publisher's Asset Store listing.