Now that we know what happens by default, let's take some time to customize the project to make it look as nice as possible. The PlayerSettings section is where we can define different parameters for each platform that we want to put the game onto. We perform the following steps:
The player settings are actually shown in the Inspector tab. There are some key properties at the top, which are cross-platform, which means that they will apply to all platforms (or rather, that they will be the defaults that you can later override).
Example Code
folder, you'll find a cursor_hand
image. Drag and drop that image to the Assets/Sprites location of the project browser. Once there, select the image, and in the Inspector tab, change the Texture Type value to Cursor
.If you want your game to have multiple cursors or change cursors at runtime, the Cursor.SetCursor
function will be quite helpful. For more information on this, check out http://docs.unity3d.com/ScriptReference/Cursor.SetCursor.html.
Example Code
folder, move the ConfigBanner
image into the Sprites
folder. Then, under PlayerSettings, click on the Splash Image section to open the Config Dialog Banner property, which you should set to our newly imported image:Disabled
.Or just jump straight into the game.
The game already looks much better and more polished than earlier! There are a number of other things that you can do, such as restrict the kind of aspect ratios your game runs or resolutions, or force windowed, or full screen. I leave it to you to play around and get your project as nice as possible before moving onward!
For more information on the properties for all the different platforms that are available, check out http://docs.unity3d.com/Manual/class-PlayerSettings.html.