기술 자료

Unity Engine

Unity Engine

ClearCachedData(Shader)

Clears all internally-cached data that was generated for the given shader, such as errors and compilation info.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static void ClearCachedData(Shader s)

Parameters

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.