Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


title

Setting this field will set the complete editor title without using any of the other fields of ApplicationTitleDescriptor.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Field
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public string title

Examples

using UnityEditor;using UnityEngine;public class WindowTitleExample{ private static void CustomTitleBar(ApplicationTitleDescriptor desc) { desc.title = $"My Editor Custom Title version: {Random.value}"; } [MenuItem("Test/Setup custom title bar")] static void Setup() { EditorApplication.updateMainWindowTitle -= CustomTitleBar; // This callback will be triggered when a new scene is loaded or when Unity starts. EditorApplication.updateMainWindowTitle += CustomTitleBar; EditorApplication.UpdateMainWindowTitle(); }}