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
- Type: Method
- Namespace: UnityEngine.Windowing.QNX
- Assembly: UnityEngine.QNXWindowingModule
public static AsyncOperation SetAlphaMode(this GameWindow window, AlphaMode alphaMode)
Parameters
The GameWindow instance this extension method is implicitly called on.
Returns
Type | Description |
|---|---|
| AsyncOperation | An 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 that you can use to track the completion of the operation.
AsyncOperation - 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()}"); }; }}