Unity Issue Tracker - WebGL Build fails with "error CS0234: The type or namespace name 'Caching' does not exist in the namespace 'UnityEngine'" when trying to find the Caching class
Closed
UUM-28352
WebGL Build fails with "error CS0234: The type or namespace name 'Caching' does not exist in the namespace 'UnityEngine'" when trying to find the Caching class
Unity: Web Platform
As Designed
2023.2.X
2023.1.X
2022.2.X
UnityEngine.Caching Scripting API is not supported on the Web Platform(from Unity 2022.1 and onwards): https://docs.unity3d.com/2022.1/Documentation/ScriptReference/Caching.html
How to reproduce:
Open the attached project "Caching Error.zip"
Build the project for WebGL
Expected results: The Build is successful
Actual results: The Build fails with "error CS0234: The type or namespace name 'Caching' does not exist in the namespace 'UnityEngine'"