0
0
Unityframework~5 mins

Platform-specific settings in Unity - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What are platform-specific settings in Unity?
Platform-specific settings in Unity are options and configurations that allow your game to behave differently or optimize performance depending on the device or operating system it runs on, like Android, iOS, or Windows.
Click to reveal answer
beginner
How do you access platform-specific settings in Unity Editor?
You open the Build Settings window (File > Build Settings), select the platform you want (like Android or iOS), then click on Player Settings to see and change platform-specific options.
Click to reveal answer
beginner
Why is it important to use platform-specific settings?
Because different devices have different hardware and software capabilities, using platform-specific settings helps your game run smoothly and look good on each device by adjusting things like graphics quality, input methods, and permissions.
Click to reveal answer
beginner
What is an example of a platform-specific setting in Unity?
An example is setting the default screen orientation differently for Android and iOS, like portrait mode for phones and landscape for tablets, so the game fits the device better.
Click to reveal answer
intermediate
Can you write a simple Unity C# code snippet to check the platform at runtime?
Yes! You can use:
if (Application.platform == RuntimePlatform.Android) {
    Debug.Log("Running on Android");
} else if (Application.platform == RuntimePlatform.IPhonePlayer) {
    Debug.Log("Running on iOS");
}
Click to reveal answer
Where do you find platform-specific settings in Unity?
AIn the Scene view
BIn the Player Settings under Build Settings
CIn the Animation window
DIn the Console window
Which Unity class helps detect the platform at runtime?
ABuildSettings
BPlatformManager
CRuntimeSettings
DApplication
Why might you set different graphics quality for different platforms?
ABecause devices have different hardware capabilities
BTo make the game harder
CTo change the game story
DTo change the player controls
Which of these is NOT a platform Unity supports for platform-specific settings?
APhotoshop
BiOS
CAndroid
DWindows
What is the correct way to check if the game is running on iOS in Unity C#?
Aif (Application.platform == RuntimePlatform.WindowsPlayer)
Bif (Application.platform == RuntimePlatform.Android)
Cif (Application.platform == RuntimePlatform.IPhonePlayer)
Dif (Application.platform == RuntimePlatform.LinuxPlayer)
Explain what platform-specific settings are in Unity and why they matter.
Think about how games run differently on phones and computers.
You got /3 concepts.
    Describe how to detect the current platform your Unity game is running on using code.
    Look for a way to ask the game 'where am I running?'
    You got /3 concepts.