Home

Awesome

UnityShaderVariantLoggerForEditor

日本語はコチラ<br />

Logging the ShaderCompile when running on Editor. And then generate the ShadervariantCollection from the "ShaderCompile log".

Windows 10 - Mac/ Mac (test with Intel MacOS 12.0)

There is also a sister tool, ProfilerModuleForShaderCompile. This tool provides a ProfilerModule specialized for ShaderCompile information.

How to use

Call "Tools/UTJ/ShaderVariantLogger" and open the window.<br />

1.logging "Shader Compile"

Screenshot<br />

If you enabled "Enabled", you play on the UnityEditor and then the "ShaderCompiling log" will be generated in "Library/com.utj.shadervariantlogger/logs"<br /> If you want to access the log , press the "Open Directory".

Also you can generate ShaderVariantCollection by using this log.<br /> <br /> When you play on the Editor,ShaderCache will be deleted every time.<br /> If you want to stop clear the Shader cachefolder, disable the flag "Clear ShaderCache".

2.Generate ShaderVariantCollection from log.

Screenshot<br />

Press "Add Variants from logs".

You can select ShaderVariantCollection Asset that you want to add ShaderVariant by selecting "ShaderVariantCollection". If "ShaderVariant Collection" is none, new file will be generated.

If you enabled "Delete logs after adding",the ShaderCompile logs will be deleted. Also you can configurate which Shader should be added by "Shader Path Config Advanced".