Version: 5.6 (switch to 2017.1b)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Shader.globalRenderPipeline

Switch to Manual
public static string globalRenderPipeline;

Description

Render pipeline currently in use.

This value is used to filter sub shaders based on the "RenderPipeline" tag. If a sub shader uses the "RenderPipeline" tag, it is used if and only if globalRenderPipeline matches the value completely. A sub shader that doesn't use the "RenderPipeline" tag will match all render pipelines. A matching sub shader is selected for all shaders when this value changes.