Version: 2020.3

PreprocessorOverride

enumeration

切换到手册

描述

Sets the preprocessor that Unity uses to compile this shader.

Note: the option to set the preprocessor is only available for vertex, fragment, geometry, tessellation and compute shaders.

变量

UseProjectSettingsUse the preprocessor defined in your Project's Editor Settings.
ForcePlatformPreprocessorUse the platform compilers' preprocessors.
ForceCachingPreprocessorUse the Caching Shader Preprocessor.