Game Development
Player Settings
Learn company and product identity with Player Settings.
Player Settings identity configuration
The Project Settings > Player panel defines your game's identity. Company Name, Product Name, and Version dictate where save files are written and determine OS window titles.
// Accessing Player Settings values from code:
string app = Application.productName;
string ver = Application.version;
string company = Application.companyName;
These values establish the root identification for every platform build.
Icon, resolution, and orientation settings
In Player Settings under Resolution and Presentation, you configure whether the game runs Fullscreen or Windowed. For mobile targets, screen orientation (Portrait / Landscape) is locked from this screen.
// Controlling screen presentation through script
// Application class dynamically manages window states
Screen.fullScreen = true;
Configuring a custom Default Icon and Splash Screen gives the game a polished, professional look.
Exercise Format application identity output
Using the variables product, version, and company, print the string "Urun: Nova v1.0.0 (CodeBlanks)" using Console.WriteLine.
Show example solution
using System;
class AppMetadata
{
static void Main()
{
string company = "CodeBlanks";
string product = "Nova";
string version = "1.0.0";
Console.WriteLine($"Urun: {product} v{version} ({company})");
}
}
Test yourself
-
What do Company Name and Product Name settings in Player Settings determine?
- Game store identity, save data directory, and package name
- Automatic driver updates for the graphics card
- Upper limits for polygons and draw calls in the scene
- Automatic repair of compilation errors in C# scripts
Show answer
Game store identity, save data directory, and package name — Company Name and Product Name form the save directory path in the OS and the unique package identifier for stores.
-
Read product name
// Player Settings icerisindeki urun adini dondurur
string title = Application.____;
Show answer
// Player Settings icerisindeki urun adini dondurur
string title = Application.productName;
-
Player Settings fields
- Company Name
- Developer or studio name
- Product Name
- Game title for store and window
- Version
- Game version number string
- Default Icon
- Desktop or launcher icon of the app
Next lesson: Building for Steam