EmbeddedLinuxGameWindowCreationSettings
EmbeddedLinux-specific settings for creating game windows.
Read time 2 minutesLast updated 3 days ago
Definition
- Type: Class
- Namespace: UnityEngine.Windowing.EmbeddedLinux
- Assembly: UnityEngine.EmbeddedLinuxWindowingGatedModule
- Inherits from: GameWindowCreationSettings
public class EmbeddedLinuxGameWindowCreationSettings : GameWindowCreationSettings
Remarks
Extends GameWindowCreationSettings with EmbeddedLinux-specific options including transparency mode and IVI (In-Vehicle Infotainment) surface ID support for Wayland/IVI Shell integration.
Examples
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()}"); }; }}
Constructors
Constructor | Description |
|---|---|
| EmbeddedLinuxGameWindowCreationSettings(System.String,System.Int32,System.Int32,UnityEngine.Vector2Int,System.Int32,UnityEngine.DisplayInfo,UnityEngine.FullScreenMode,System.Boolean,UnityEngine.Windowing.TransparencyMode,System.UInt32) | Creates a new EmbeddedLinuxGameWindowCreationSettings with the specified parameters including fullscreen mode. |
| EmbeddedLinuxGameWindowCreationSettings(System.String,System.Int32,System.Int32,UnityEngine.Vector2Int,System.Int32,UnityEngine.DisplayInfo,UnityEngine.Windowing.TransparencyMode,System.UInt32) | Creates a new EmbeddedLinuxGameWindowCreationSettings with the specified parameters in windowed mode. |
Properties
Property | Description |
|---|---|
| iviSurfaceID | Sets the IVI (In-Vehicle Infotainment) surface ID for Wayland/IVI Shell integration. |
| transparencyMode | Sets the transparency mode of the window. |