docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Delegate OpenXRLayerUtility.SwapchainCallbackDelegate

    Calls the methods in its invocation list when a swapchain is created on the graphics thread inside the UnityOpenXR lib.

    Namespace: UnityEngine.XR.OpenXR.CompositionLayers
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public delegate void OpenXRLayerUtility.SwapchainCallbackDelegate(int layerId, ulong swapchainHandle)
    Parameters
    Type Name Description
    int layerId

    The instance id of the composition layer object.

    ulong swapchainHandle

    The handle to the native swapchain that was just created.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)