docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RawColorHistory

    Raw render color history. The color snapshot is taken before post processing. Raw rendered geometry. No UI overlay. A matching depth is RawDepthHistory. Color space is linear RGB. No mips. MSAA is not supported and is resolved for the history. XR is supported.

    Inheritance
    object
    ContextItem
    CameraHistoryItem
    RawColorHistory
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.Universal
    Assembly: Unity.RenderPipelines.Universal.Runtime.dll
    Syntax
    public sealed class RawColorHistory : CameraHistoryItem

    Methods

    GetCurrentTexture(int)

    Get the current history texture. Current history might not be valid yet. It is valid only after executing the producing render pass.

    Declaration
    public RTHandle GetCurrentTexture(int eyeIndex = 0)
    Parameters
    Type Name Description
    int eyeIndex

    Eye index, typically XRPass.multipassId.

    Returns
    Type Description
    RTHandle

    The texture.

    GetPreviousTexture(int)

    Get the previous history texture. Previous history might not be valid yet. It is valid only after executing the producing render pass.

    Declaration
    public RTHandle GetPreviousTexture(int eyeIndex = 0)
    Parameters
    Type Name Description
    int eyeIndex

    Eye index, typically XRPass.multipassId.

    Returns
    Type Description
    RTHandle

    The texture.

    OnCreate(BufferedRTHandleSystem, uint)

    Declaration
    public override void OnCreate(BufferedRTHandleSystem owner, uint typeId)
    Parameters
    Type Name Description
    BufferedRTHandleSystem owner
    uint typeId
    Overrides
    CameraHistoryItem.OnCreate(BufferedRTHandleSystem, uint)

    Reset()

    Release the history texture(s).

    Declaration
    public override void Reset()
    Overrides
    ContextItem.Reset()
    In This Article
    • Methods
      • GetCurrentTexture(int)
      • GetPreviousTexture(int)
      • OnCreate(BufferedRTHandleSystem, uint)
      • Reset()
    Back to top
    Copyright © 2025 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)