CodeBlanks Logo Icon CodeBlanks

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.

Practice Format application identity output

Using the variables product, version, and company, print the string "Urun: Nova v1.0.0 (CodeBlanks)" using Console.WriteLine.

Starter code

Player.cs
using System;

class AppMetadata
{
    static void Main()
    {
        string company = "CodeBlanks";
        string product = "Nova";
        string version = "1.0.0";
        // Metadata metnini formatlayarak yazdir
        
    }
}

Sample solution

Player.cs
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})");
    }
}

Expected output

Urun: Nova v1.0.0 (CodeBlanks)

Questions and answers

Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.

1 What do Company Name and Product Name settings in Player Settings determine?

  • Game store identity, save data directory, and package name Correct answer
  • 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

Explanation: Company Name and Product Name form the save directory path in the OS and the unique package identifier for stores.

2 Read product name

Question
// Player Settings icerisindeki urun adini dondurur
string title = Application.____;
Answer
// Player Settings icerisindeki urun adini dondurur
string title = Application.productName;

Explanation: Application.productName returns the game title configured inside the Player Settings panel.

3 Player Settings fields

Term Meaning
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

All lessons in Expert