private void Start() { Dictionary <string, object> dictionary = new Dictionary <string, object>(); dictionary.Add("particlesRate", 100f); Dictionary <string, object> defaultValues = dictionary; AutoTune.Init("1", usePersistentPath: true, defaultValues); AutoTune.Fetch(GotSettings); }
// Use this for initialization void Start() { var defaults = new Dictionary <string, object>() { { "totalObjects", 10 } }; _startTime = Time.time; AutoTune.Init("1OffXev7qC2FOX1Zbp1dwAcXei67rtwOc3X9Bop2g8y8", "1", true, defaults); AutoTune.Fetch(GotSettings); }
// Update is called once per frame void Update() { float t = Time.time; if (_experimentState == 0 && t - _startTime > EXPERIMENT_DELAY) { AutoTune.GetPerfRecorder().BeginExperiment("autotune-qa"); _experimentState = 1; } if (_experimentState == 1 && t - (_startTime + EXPERIMENT_DELAY) > EXPERIMENT_TIME) { AutoTune.GetPerfRecorder().EndExperiment(); _experimentState = 2; } }
public void OnGUI() { if (_experimentStarted) { if (GUILayout.Button("End Experiment")) { AutoTune.GetPerfRecorder().EndExperiment(); _experimentStarted = false; } } else if (GUILayout.Button("Start Experiment")) { AutoTune.GetPerfRecorder().BeginExperiment("MyExperiment"); _experimentStarted = true; } }