文档

Unity Engine

Unity Engine

logWhenShaderIsCompiled

Whether Unity adds a log entry each time it compiles a shader at runtime.
阅读时间1 分钟最后更新于 3 天前

Definition

public bool logWhenShaderIsCompiled { get; set; }

Remarks

Each log entry contains the shader name, pass name, shader stage, and enabled keywords. This setting has no effect in release builds. For the global setting, refer to GraphicsSettings.logWhenShaderIsCompiled.