Plugin for Tutorial Manager (follow development here), please see this repo’s tags for the most up-to-date releases.
Our hypothesis is that different players need different onboarding experiences. This plugin makes testing this hypothesis possible. By hooking a key decision point (show/don't show the tutorial) to the game, we can reinforce a model which will intelligently predict and improve. If we're successful, we can ultimately deliver many smart decisions on a per-player basis.
- In Unity, go to
Window
->Test Runner
- Enable play mode tests in the Test Runner window
- Restart the editor
- Click
Run All
in the Test Runner window - Right click to run specific tests
NOTE: if you make changes, wait for recompilation to finish before trying to run tests - otherwise, it’ll save a test scene and stop mid test
-
While doing manual testing, to ensure a decision is made each time do the following:
- Delete the analytics values file:
if (File.Exists(Application.persistentDataPath + "/Unity/" + Application.cloudProjectId + "/Analytics/values")) { File.Delete(Application.persistentDataPath + "/Unity/" + Application.cloudProjectId + "/Analytics/values"); }
- Delete PlayerPrefs
PlayerPrefs.DeleteAll(); PlayerPrefs.Save();
- Alternatively, just delete the key that Tutorial Manager uses to cache the decision:
PlayerPrefs.DeleteKey("adaptive_onboarding_show_tutorial"); PlayerPrefs.Save();
As of release toolkit-v1
ONLY the following directories should be included in the build:
TutorialManager
> Editor
> Runtime
Further, the following directory should be excluded: TutorialManager > Editor > Tests
Join the Contextual Data slack channel and hit us with your questions! #contextual-data