struct RenderTarget (Niantic.ARDK.Rendering.RenderTarget)
Overview
A render target can either be a camera or an offscreen texture. More…
struct RenderTarget: IEquatable< RenderTarget > { // fields readonly Camera Camera; readonly RenderTargetIdentifier Identifier; readonly bool IsTargetingCamera; readonly bool IsTargetingTexture; readonly RenderTexture RenderTexture; // methods override bool Equals(object obj); bool Equals(RenderTarget other); override int GetHashCode(); Resolution GetResolution(ScreenOrientation forOrientation); RenderTarget(Camera cam); RenderTarget(RenderTexture texture); static implicit operator RenderTarget (Camera cam); static implicit operator RenderTarget (RenderTexture texture); };
Detailed Documentation
A render target can either be a camera or an offscreen texture.
Fields
readonly Camera Camera
The actual camera as a render target, if any.
readonly RenderTargetIdentifier Identifier
The identifier of this render target.
readonly RenderTexture RenderTexture
The actual GPU texture as a render target, if any.
Methods
Resolution GetResolution(ScreenOrientation forOrientation)
Returns a the resolution of the target, in the function of the specified screen orientation.
RenderTarget(Camera cam)
Creates a render target from the specified camera.
RenderTarget(RenderTexture texture)
Creates a render target from the specified texture.