Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetAlphaMode(GameWindow, AlphaMode)

Sets the alpha blending mode for the specified window on QNX. This is an extension method for GameWindow.
Read time 1 minuteLast updated 12 days ago

Definition

public static AsyncOperation SetAlphaMode(this GameWindow window, AlphaMode alphaMode)

Parameters

The GameWindow instance this extension method is implicitly called on.

alphaMode

The AlphaMode to set for the window.

Returns

Type

Description

AsyncOperationAn AsyncOperation that you can use to track the completion of the alpha mode update operation.

Remarks

Sets the alpha blending mode used by the QNX Screen windowing system for compositing the window with other surfaces.
Notes:
  • This method is asynchronous and returns an
    AsyncOperation
    that you can use to track the completion of the operation.
  • This method is available only on QNX platforms.

Examples

using UnityEngine;using UnityEngine.Windowing;using UnityEngine.Windowing.QNX;public class SetAlphaModeExample : MonoBehaviour{ void Start() { AsyncOperation op = GameWindow.Main.SetAlphaMode(AlphaMode.PreMultipliedAlpha); op.completed += _ => { Debug.Log($"Alpha mode set for {GameWindow.Main.GetTitle()}"); }; }}