Search Results for

    Show / Hide Table of Contents

    Class RenderPipelineUtils

    Provides utility methods for querying the active Unity render pipeline.

    Inheritance
    object
    RenderPipelineUtils
    Namespace: TriLibCore.Utils
    Assembly: TriLibCore.Source.dll
    Syntax
    public static class RenderPipelineUtils

    Properties

    IsUsingAnySRP

    Gets a value indicating whether any Scriptable Render Pipeline (SRP) is active.

    Declaration
    public static bool IsUsingAnySRP { get; }
    Property Value
    Type Description
    bool

    IsUsingHDRPPipeline

    Gets a value indicating whether the High Definition Render Pipeline (HDRP) is active.

    Declaration
    public static bool IsUsingHDRPPipeline { get; }
    Property Value
    Type Description
    bool

    IsUsingStandardPipeline

    Gets a value indicating whether the built-in (legacy) render pipeline is active.

    Declaration
    public static bool IsUsingStandardPipeline { get; }
    Property Value
    Type Description
    bool

    IsUsingUniversalPipeline

    Gets a value indicating whether the Universal Render Pipeline (URP) is active.

    Declaration
    public static bool IsUsingUniversalPipeline { get; }
    Property Value
    Type Description
    bool

    Methods

    GetActivePipelineKind()

    Determines the kind of render pipeline currently active.

    Declaration
    public static RenderPipelineUtils.RenderPipelineKind GetActivePipelineKind()
    Returns
    Type Description
    RenderPipelineUtils.RenderPipelineKind

    A RenderPipelineUtils.RenderPipelineKind value representing the active pipeline.

    GetActiveRenderPipelineAsset()

    Gets the currently active RenderPipelineAsset.

    Declaration
    public static RenderPipelineAsset GetActiveRenderPipelineAsset()
    Returns
    Type Description
    RenderPipelineAsset

    The active render pipeline asset, or null when using the built-in pipeline.

    Remarks

    This method checks currentRenderPipeline first, falling back to renderPipeline when necessary.

    In this article
    Back to top TriLib documentation