docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Event beforeGetCameraConfiguration

    Invoked from native code just before this subsystem calls ArSession_getSupportedCameraConfigsWithFilter.

    Namespace: UnityEngine.XR.ARCore
    Assembly: solution.dll
    Syntax
    public event Action<ARCoreBeforeGetCameraConfigurationEventArgs> beforeGetCameraConfiguration
    Returns
    Type Description
    Action<ARCoreBeforeGetCameraConfigurationEventArgs>

    An Action delegate that you can use to modify the camera config filter.

    Remarks

    This allows you to customize the ArCameraConfigFilter passed to ArSession_getSupportedCameraConfigsWithFilter.

    Do not destroy the filter object in this callback. Doing so is undefined behavior and may crash.

    The filter provided by filter is only guaranteed to exist for the duration of this callback. Accessing it from outside this callback is undefined behavior.

    In This Article
    Back to top
    Copyright © 2024 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)