Ejemplo n.º 1
0
    public void Setup()
    {
        var defines = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);

        EditorPrefs.SetString(defineKey, defines);
        PlayerSettings.SetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup, "STATIC_EVERYTHING;LWRP_DEBUG_STATIC_POSTFX");
        SetupGraphicsTestCases.Setup();
    }
Ejemplo n.º 2
0
    private static float _oldTimeScale = 1.0f; // give default of 1 just in case

    public void Setup()
    {
        // save current scription defines and set both STATIC_EVERYTHING and LWRP_DEBUG_STATIC_POSTFX
        var defines = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);

        EditorPrefs.SetString(DefineKey, defines);
        PlayerSettings.SetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup, "STATIC_EVERYTHING;LWRP_DEBUG_STATIC_POSTFX");
        // store current timescale and set it to 0
        _oldTimeScale  = Time.timeScale;
        Time.timeScale = 0f;
        // run base graphics test setup
        SetupGraphicsTestCases.Setup();
    }
Ejemplo n.º 3
0
    public void Setup()
    {
        string imageResultsSaveDir = "";
        var    args = System.Environment.GetCommandLineArgs();

        for (int i = 0; i < args.Length - 1; i++)
        {
            if (args[i] == "-testResults")
            {
                imageResultsSaveDir = Path.Combine(Path.GetDirectoryName(args[i + 1]), "ResultsImages");
                break;
            }
        }

        SetupGraphicsTestCases.Setup(imageResultsPath: imageResultsSaveDir);
    }