Version: 1.10
LanguageEnglish
  • C#

GameWindowExtensions.GetTransparency

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 GetTransparency(Windowing.GameWindow window);

Parameters

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

Returns

int QNX system Screen Transparency values.

Description

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

Returns the raw Screen transparency type,The return value is the direct return value of the Screen service system; see the QNX documentation for details.The value may not be equal to the previously set value. This is based on the QNX system design; please refer to the QNX documentation for details.

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

public class GetTransparencyExample : MonoBehaviour { void Start() { int transparencymode = GameWindow.Main.GetTransparency(); Debug.Log($"MainWindow Transparency is {transparencymode}"); } }