{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class ShaderGraphConversionTests | Unity PolySpatial | 0.0.4
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ShaderGraphConversionTests

    Inheritance
    object
    ShaderGraphConversionTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEditor.ShaderGraph.MaterialX.Tests
    Assembly: solution.dll
    Syntax
    public class ShaderGraphConversionTests

    Methods

    Name Description
    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.
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)