error CS0234: The type or namespace name ‘UI‘ does not exist in the namespace ‘UnityEngine‘

created at 11-12-2021 views: 3

1. ERROR

After opening the project, an error is reported:

error CS0234: The type or namespace name ‘UI’ does not exist in the namespace ‘UnityEngine’

2. Solution

Close Untiy, delete the Library folder, and reopen the project

[1], close the project, delete the folder Library, the location is as follows:

PATH

[2], Reopen the project, Unity will automatically rebuild the related dll

Reopen the project

created at:11-12-2021
edited at: 11-12-2021: