docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IncludeAdditionalRPAssets

    A graphics settings container for settings related to additional RenderPipelineAsset inclusion at build time.

    Inheritance
    object
    IncludeAdditionalRPAssets
    Implements
    IRenderPipelineGraphicsSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    [Serializable]
    [SupportedOnRenderPipeline(new Type[] { })]
    [CategoryInfo(Name = "H: RP Assets Inclusion", Order = 990)]
    [HideInInspector]
    public class IncludeAdditionalRPAssets : IRenderPipelineGraphicsSettings
    Remarks

    These settings are not editable through the editor's UI but can be changed through the API for advanced usage. Changing this through the API is only allowed in the Editor. In the Player, this raises an error.

    By default, only RPAsset, in Quality Settings, is embedded in the build. This allows you to add assets. Add any render pipeline assets you use in your project either through this or directly in Quality Settings. They contain data listing what resources need to be embedded in the build. It is highly recommended not to change it unless you know what you are doing. Otherwise, this may lead to unexpected changes in your Player.

    Examples

    Here is an example of how to determine what label to use to embed additional assets.

    using UnityEngine.Rendering;
    

    public static class RPAssetIncludedHelper { public static string label { get { var gs = GraphicsSettings.GetRenderPipelineSettings<IncludeAdditionalRPAssets>(); if (gs == null) //not in SRP return null; if (!gs.includeAssetsByLabel) return null; return gs.labelToInclude; } } }

    Properties

    includeAssetsByLabel

    Additionaly include RPAsset that have a specific label.

    Declaration
    public bool includeAssetsByLabel { get; set; }
    Property Value
    Type Description
    bool
    See Also
    IRenderPipelineGraphicsSettings

    includeReferencedInScenes

    Additionaly include RPAsset referenced in Scene.

    Declaration
    public bool includeReferencedInScenes { get; set; }
    Property Value
    Type Description
    bool
    See Also
    IRenderPipelineGraphicsSettings

    labelToInclude

    Label to use when including RPAsset by label.

    Declaration
    public string labelToInclude { get; set; }
    Property Value
    Type Description
    string
    See Also
    IRenderPipelineGraphicsSettings

    Implements

    IRenderPipelineGraphicsSettings

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)

    See Also

    IRenderPipelineGraphicsSettings
    In This Article
    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)