Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


productName

The name of your product.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static string productName { get; set; }

Remarks

Define the name of your application. The product name appears as the application title in various places, such as the home screen on mobile, window titles on desktop, and system UIs.
PlayerSettings.productName
is also used to locate the preferences file and define file names for the built Player.

Examples

// Save this code in the Editor folder of your Project. When you save, Unity compiles this script and changes the settings. using UnityEditor;[InitializeOnLoad]public static class SetProductNameAutomatically{ static SetProductNameAutomatically() {// Replace with your desired product name. PlayerSettings.productName = "My New Game"; UnityEngine.Debug.Log("Product name set to: " + PlayerSettings.productName); }}