Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

AlphaMode

enumeration

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

Description

Options for alpha blending modes in QNX game windows.

This enum controls how the QNX Screen windowing system blends the window with other surfaces during compositing.

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

public class AlphaModeExample : MonoBehaviour { void Start() { AlphaMode alphaMode = AlphaMode.PreMultipliedAlpha; AsyncOperation op = GameWindow.Main.SetAlphaMode(alphaMode);

op.completed += _ => { Debug.Log($"Alpha mode set to {alphaMode} for {GameWindow.Main.GetTitle()}"); }; } }

Properties

Property Description
DefaultUse the default alpha blending mode.
NonPreMultipliedAlphaUse non-pre-multiplied alpha blending.
PreMultipliedAlphaUse pre-multiplied alpha blending.