Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

ShaderInfo

struct in UnityEditor

Description

Contains the following information about a shader: -If the shader has compilation errors. -If the shader is supported on the currently selected platform. -The name of the shader.

Properties

hasErrorsTrue if the shader has compilation errors.
nameThe name of the shader.
supportedTrue if the shader is supported on the currently selected platform.

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