Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetRenderPipelineAssetsForPlatform

[Editor Only] Obtains a set with the non null Render Pipeline Assets selected on all the Quality Levels for the given platform.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

GetRenderPipelineAssetsForPlatform<T>(string, HashSet<T>)

[Editor Only] Obtains a set with the non null Render Pipeline Assets selected on all the Quality Levels for the given platform.
public static void GetRenderPipelineAssetsForPlatform<T>(string buildTargetGroupName, out HashSet<T> uniqueRenderPipelineAssets) where T : RenderPipelineAsset

Parameters

buildTargetGroupName

The platform to obtain the Render Pipeline Assets.

uniqueRenderPipelineAssets

A collection with the non null selected Render Pipeline Assets for the platform.

GetRenderPipelineAssetsForPlatform<T>(string, HashSet<T>, bool)

[Editor Only] Obtains a set with the non null Render Pipeline Assets selected on all the Quality Levels for the given platform.
public static void GetRenderPipelineAssetsForPlatform<T>(string buildTargetGroupName, out HashSet<T> uniqueRenderPipelineAssets, out bool allLevelsAreOverridden) where T : RenderPipelineAsset

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.

Examples

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>();}