When Unity writes a mobile game in Windows editor mode, Shader rendering error appears onion purple problem solution, and the reason

When Unity writes a mobile game in Windows editor mode, Shader rendering error appears onion purple problem solution, and the reason


1. Reasons

Mobile rendering uses OpenGL
Windows uses Direct3D


Second, the solution

In Edit->Project Settings->Player->select windows platform->Other Settings

1. Uncheck Auto Graphics API for Windows

2. Add OpenGLES3 to Graphics API for Windows

insert image description here

Guess you like

Origin blog.csdn.net/qq_51603875/article/details/131660038