ClearCachedData(Shader)
Clears all internally-cached data that was generated for the given shader, such as errors and compilation info.
阅读时间1 分钟最后更新于 16 天前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static void ClearCachedData(Shader s)
Parameters
The shader to clear cached data for.
Remarks
This happens automatically on import for shader assets but should be called for programmatically-generated shaders to clear old data before calling ShaderUtil.UpdateShaderAsset.