文档

Unity Engine

Unity Engine

GetFullScreenMode()

Gets the full-screen mode of the window.
阅读时间1 分钟最后更新于 1 个月前

Definition

public FullScreenMode GetFullScreenMode()

Returns

Type

Description

FullScreenModeThe FullScreenMode of the window.

Examples

using UnityEngine;using UnityEngine.Windowing;public class FullScreenModeExample : MonoBehaviour{ void Start() { var window = GameWindow.Main; FullScreenMode mode = window.GetFullScreenMode(); Debug.Log($"Fullscreen mode: {mode}"); }}