Unity-Technologies / ProjectAuditor

Project Auditor is an experimental static analysis tool for Unity Projects.
Other
822 stars 68 forks source link

Compiled variants improvements #36

Closed mtrive closed 3 years ago

mtrive commented 3 years ago

Problem In the Shader Variants window:

  1. After a build, each variant Compiled property should display a ? symbol to indicate the user hasn't provided the player log information (by dropping the player.log to the window). Unfortunately, the Compiled column shows a disabled checkbox instead.
  2. In some early Unity 2018 versions, shader compilation logging is supported but there is no UI option in the Graphics settings which leads to some confusion.

Solution

  1. Fix the Compiled property by displaying a ? symbol.
  2. Expose "Log Shader Compilation" option in Shader Variants window and improve messaging to the user.

Build data is not available: build-required

Build data is available and Player log is not available log-shader-compilation

Log Shader Compilation unsupported unsupported

mtrive commented 3 years ago

Note that I am going to merge this PR to master, then create a new one with another batch of improvements.