Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

EmbeddedLinuxGameWindowCreationSettings

class in UnityEngine.Windowing.EmbeddedLinux

/

Inherits from:Windowing.GameWindowCreationSettings

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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, displayInfo: displayInfos[0], 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()}"); }; } }

Properties

Property Description
iviSurfaceIDSets the IVI (In-Vehicle Infotainment) surface ID for Wayland/IVI Shell integration.
transparencyModeSets the transparency mode of the window.

Constructors

Constructor Description
EmbeddedLinuxGameWindowCreationSettingsCreates a new EmbeddedLinuxGameWindowCreationSettings with the specified parameters including fullscreen mode.

Inherited Members

Properties

PropertyDescription
cameraDisplayIndexThe display index that the camera should render to.
displayInfoInformation about the display where the window will be created.
fullScreenModeThe fullscreen mode for the window.
heightThe height of the window in pixels.
positionThe position of the window relative to the top-left corner of the display.
resizableDetermines whether the window can be resized by the user.
titleThe title text displayed in the window's title bar.
widthThe width of the window in pixels.