class ARConfigChanger (Niantic.ARDK.Extensions.ARConfigChanger)

Overview

Extension for UnityLifecycleDriver that allows inheritors to modify the ARSession’s configuration, through the use of ARSessionChangesCollector. Configuration info is asked for by the ARSession whenever it runs, and this class may additionally be used to update the configuration after the session has already ran. More…

class ARConfigChanger: Niantic.ARDK.Extensions.UnityLifecycleDriver {
public:
    // methods

    virtual abstract void ApplyARConfigurationChange(ARSessionChangesCollector.ARSessionRunProperties properties) = 0;
};

// direct descendants

class ARImageDetectionManager;
class ARNetworkingManager;
class ARSessionListener;
class ARSessionManager;
class ARRenderFeatureProvider;

Inherited Members

public:
    // properties

    bool AreFeaturesEnabled;
    bool CanInitialize;
    bool Initialized;

    // methods

    void Deinitialize();
    void DisableFeatures();
    void EnableFeatures();
    void Initialize();

Detailed Documentation

Extension for UnityLifecycleDriver that allows inheritors to modify the ARSession’s configuration, through the use of ARSessionChangesCollector. Configuration info is asked for by the ARSession whenever it runs, and this class may additionally be used to update the configuration after the session has already ran.

Methods

virtual abstract void ApplyARConfigurationChange(ARSessionChangesCollector.ARSessionRunProperties properties) = 0

Inheritors should override this to modify session configuration settings based on their script’s needs.

Note

This is executed as a result of the ARSession being run, which may or may not be triggered by a call to RaiseConfigurationChanged().