기술 자료

Unity Engine

Unity Engine

GetTitle()

Gets the title of the window.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public string GetTitle()

Returns

Type

Description

stringThe title of the window as a string.

Examples

using UnityEngine;using UnityEngine.Windowing;public class WindowTitleExample : MonoBehaviour{ void Start() { var window = GameWindow.Main; string title = window.GetTitle(); Debug.Log($"Window title: {title}"); }}