Version: 1.10
LanguageEnglish
  • C#

GameWindowExtensions.GetZOrder

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

Declaration

public static int GetZOrder(Windowing.GameWindow window);

Parameters

window The GameWindow instance this extension method is implicitly called on.

Returns

int QNX system Screen Zorder values.

Description

Get the Transparency value for the specified window on QNX. This is an extension method for GameWindow.

Get the zOrder used by the QNX Screen windowing system for compositing the window with other surfaces.The return value is the direct return value of the Screen service system; see the QNX documentation for details.

using UnityEngine;
using UnityEngine.Windowing;
using UnityEngine.Windowing.QNX;

public class GetZordeExample : MonoBehaviour { void Start() { int zorder = GameWindow.Main.GetTransparency(); Debug.Log($"MainWindow Zorder is {zorder}"); } }