class ARPlaneManager (Niantic.ARDK.Extensions.ARPlaneManager)

Overview

Instantiates, updates, and removes GameObjects for each detected [PlaneAnchor](Niantic.ARDK.AR.Anchors.IARPlaneAnchor]. This settings on this class are the ultimate authority on the used IARWorldTrackingConfiguration.PlaneDetection value. More…

class ARPlaneManager: Niantic.ARDK.Extensions.ARSessionListener {
public:
    // properties

    PlaneDetection DetectedPlaneTypes;
    GameObject PlanePrefab;

    // methods

    virtual override void ApplyARConfigurationChange(ARSessionChangesCollector.ARSessionRunProperties properties);
};

Inherited Members

public:
    // properties

    bool AreFeaturesEnabled;
    bool CanInitialize;
    bool Initialized;

    // methods

    void Deinitialize();
    void DisableFeatures();
    void EnableFeatures();
    void Initialize();
    virtual abstract void ApplyARConfigurationChange(ARSessionChangesCollector.ARSessionRunProperties properties) = 0;

Detailed Documentation

Instantiates, updates, and removes GameObjects for each detected [PlaneAnchor](Niantic.ARDK.AR.Anchors.IARPlaneAnchor]. This settings on this class are the ultimate authority on the used IARWorldTrackingConfiguration.PlaneDetection value.

Properties

GameObject PlanePrefab

If this is null no plane prefabs will be created. If this changes after planes have already been discovered existing instances won’t be changed.

Methods

virtual override void ApplyARConfigurationChange(ARSessionChangesCollector.ARSessionRunProperties properties)

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().