GetTitle()
Gets the title of the window.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine.Windowing
- Assembly: UnityEngine.WindowingModule
public string GetTitle()
Returns
Type | Description |
|---|---|
| string | The 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}"); }}