Method TestAllAssets
TestAllAssets()
This editor time test will inline compare the output of the shadergraph assets in k_TestAssetsDirectory with the expected output in k_TestExpectedDirectory. It will catch if the expected output has changed.
This test is relatively fragile- as the assets and expected outputs need to be updated individually. To do so:
- Enable all PolySpatial/ShaderGraph project settings.
- Copy the TestAssets subdirectory into a project-- which should cause them to import and generate output files.
- -- Should fix any import errors if there are any and reimport.
- Copy from ProjectDir/Assets/StreamingAssets/ to the expected test directory.
- Clean up any assets not needed in that project.
Declaration
public void TestAllAssets()