class ARRenderingManager (Niantic.ARDK.Extensions.ARRenderingManager)

Overview

class ARRenderingManager: Niantic.ARDK.Extensions.UnityLifecycleDriver {
public:
    // properties

    Camera Camera;
    Texture2D CPUTexture;
    RenderTexture GPUTexture;
    IARFrameRenderer Renderer;

    // events

    event RendererInitialized();
};

Inherited Members

public:
    // properties

    bool AreFeaturesEnabled;
    bool CanInitialize;
    bool Initialized;

    // methods

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

Detailed Documentation

Properties

Texture2D CPUTexture

A CPU texture of the latest AR background. This texture is aligned (cropped, rotated) to the render target. It is guaranteed that only a single ReadPixels call will be performed during the same ARFrame.

Note

This is a fairly expensive call.

RenderTexture GPUTexture

A GPU texture of the latest AR background. This texture is aligned (cropped, rotated) to the render target. If the renderer is set to target a render texture, this property will return that texture. Otherwise, a new render texture will be allocated and updated lazily. It is guaranteed that no more than a single Blit command will be issued during the same ARFrame.

IARFrameRenderer Renderer

Returns the renderer instance used by this manager.

Events

event RendererInitialized()

Event for when the underlying frame renderer initialized.