Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to set the build target to PC standalone.
Unity
BuildPipeline.BuildPlayer(scenes, path, BuildTarget.[1], BuildOptions.None);
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Android or iOS build targets for PC builds.
Using WebGL which is for browser builds.
✗ Incorrect
Use StandaloneWindows64 to build for PC (Windows 64-bit).
2fill in blank
mediumComplete the code to set the build target to Mac standalone.
Unity
BuildPipeline.BuildPlayer(scenes, path, BuildTarget.[1], BuildOptions.None);
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting Windows or Linux build targets for Mac builds.
Confusing Android with desktop platforms.
✗ Incorrect
Use StandaloneOSX to build for Mac standalone.
3fill in blank
hardFix the error in the build target for a Mac standalone build.
Unity
BuildPipeline.BuildPlayer(scenes, path, BuildTarget.[1], BuildOptions.None);
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using Windows or WebGL build targets for Mac builds.
Confusing iOS with Mac standalone.
✗ Incorrect
The correct build target for Mac standalone is StandaloneOSX.
4fill in blank
hardFill both blanks to build for PC standalone and specify the output path.
Unity
string outputPath = [1]; BuildPipeline.BuildPlayer(scenes, outputPath, BuildTarget.[2], BuildOptions.None);
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing Mac output paths with PC build targets.
Using Mac build targets with Windows executable paths.
✗ Incorrect
Use the Windows executable path and StandaloneWindows64 target for PC builds.
5fill in blank
hardFill all three blanks to build for Mac standalone with scenes, output path, and build target.
Unity
string[] scenes = [1]; string outputPath = [2]; BuildPipeline.BuildPlayer(scenes, outputPath, BuildTarget.[3], BuildOptions.None);
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using Windows build target or output path for Mac builds.
Passing scenes as a single string instead of an array.
✗ Incorrect
Use the correct scenes array, Mac output path, and Mac build target for a Mac standalone build.