ドキュメント

Unity Engine

Unity Engine

AlphaMode

Options for alpha blending modes in QNX game windows.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public enum AlphaMode

Remarks

Use this enum with GameWindowExtensions.SetAlphaMode to control how the QNX Screen windowing system blends the window with other surfaces during compositing.

Examples

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()}"); }; }}

Fields

Value

Description

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