QualitySettings.GetRenderPipelineAssetsForPlatform

Switch to Manual

Declaration

public static void GetRenderPipelineAssetsForPlatform(string buildTargetGroupName, out HashSet<T> uniqueRenderPipelineAssets);

Parameters

buildTargetGroupName The platform to obtain the Render Pipeline Assets.
uniqueRenderPipelineAssets A collection with the non null selected Render Pipeline Assets for the platform.

Description

[Editor Only] Obtains a set with the non null Render Pipeline Assets selected on all the Quality Levels for the given platform.


Declaration

public static void GetRenderPipelineAssetsForPlatform(string buildTargetGroupName, out HashSet<T> uniqueRenderPipelineAssets, out bool allLevelsAreOverridden);

Parameters

buildTargetGroupName The platform to obtain the Render Pipeline Assets.
uniqueRenderPipelineAssets A collection with the non null selected Render Pipeline Assets for the platform.
allLevelsAreOverridden An additional information that state if all quality settings were overridden in the project.

Description

[Editor Only] Obtains a set with the non null Render Pipeline Assets selected on all the Quality Levels for the given platform.

public T[] GetAllRenderPipelineAssets<T>(BuildTarget platform)
    where T : RenderPipelineAsset
{
    var activeBuildTargetGroup = BuildPipeline.GetBuildTargetGroup(platform);
    var namedBuildTarget = NamedBuildTarget.FromBuildTargetGroup(activeBuildTargetGroup);
    QualitySettings.GetRenderPipelineAssetsForPlatform<T>(namedBuildTarget.TargetName, out var uniqueAssets, out bool allLevelsAreOverridden);
    if(allLevelsAreOverridden)
        return uniqueAssets.ToArray();

return Array.Empty<T>(); }

Did you find this page useful? Please give it a rating: