class in UnityEngine.Windowing.EmbeddedLinux
/
Inherits from:Windowing.GameWindowCreationSettings
/
Implemented in:UnityEngine.CoreModule
EmbeddedLinux-specific settings for creating game windows.
Extends GameWindowCreationSettings with EmbeddedLinux-specific options including transparency mode and IVI (In-Vehicle Infotainment) surface ID support for Wayland/IVI Shell integration.
using System.Collections.Generic; using UnityEngine; using UnityEngine.Windowing; using UnityEngine.Windowing.EmbeddedLinux;
public class EmbeddedLinuxCreateWindowExample : MonoBehaviour { List<DisplayInfo> displayInfos = new List<DisplayInfo>(); void Start() { DisplayInfo.GetLayout(displayInfos); var settings = new EmbeddedLinuxGameWindowCreationSettings( title: "Second Window", width: 600, height: 400, position: new Vector2Int(0, 0), cameraDisplayIndex: 1, fullScreenMode: FullScreenMode.Windowed, resizable: false, transparencyMode: TransparencyMode.Transparent, iviSurfaceID: 1223 ); var op = GameWindowManager.Create(settings); op.completed += (AsyncOperation o) => { Debug.Log($"Window Created: {op.window.GetTitle()}"); }; } }
| iviSurfaceID | Sets the IVI (In-Vehicle Infotainment) surface ID for Wayland/IVI Shell integration. |
| transparencyMode | Sets the transparency mode of the window. |
| cameraDisplayIndex | The display index that the camera should render to.This value determines which display the camera associated with this window will target for rendering. |
| fullScreenMode | The fullscreen mode for the window.Specifies whether the window should be created in windowed, fullscreen, or borderless fullscreen mode. See FullScreenMode for available options. |
| height | The height of the window in pixels. |
| position | The position of the window relative to the top-left corner of the display.Specified as a Vector2Int with x and y coordinates in pixels. |
| resizable | Determines whether the window can be resized by the user.When set to true, the window will have resizing handles. When false, the window size is fixed. |
| title | The title text displayed in the window's title bar. |
| width | GameWindowCreationSettings.width. |