Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

QualitySettings.GetAllRenderPipelineAssetsForPlatform

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual

Declaration

public static void GetAllRenderPipelineAssetsForPlatform(string buildTargetGroupName, ref List<RenderPipelineAsset> renderPipelineAssets);

Parameters

buildTargetGroupName The platform to obtain the Render Pipeline Assets.
renderPipelineAssets The list that will be filled with the unfiltered Render Pipeline Assets. There might be null Render Pipeline Assets.

Description

[Editor Only] Fills the given list with all the Render Pipeline Assets on any Quality Level for the given platform. Without filtering by Render Pipeline Asset type or null.

public RenderPipelineAsset[] GetAllRenderPipelineAssets(BuildTarget platform)
{
    var activeBuildTargetGroup = BuildPipeline.GetBuildTargetGroup(platform);
    var namedBuildTarget = NamedBuildTarget.FromBuildTargetGroup(activeBuildTargetGroup);
    List<RenderPipelineAsset> assets = new List<RenderPipelineAsset>();
    QualitySettings.GetAllRenderPipelineAssetsForPlatform(namedBuildTarget.TargetName, ref assets);
    return assets.ToArray();
}

Gets all the Render Pipeline Assets. That are included in all the Quality levels for the given platform.