Skip to content

tsira/TutorialManagerReplica

Repository files navigation

Tutorial Manager Plugin

Intro

Plugin for Tutorial Manager (follow development here), please see this repo’s tags for the most up-to-date releases.

What's it for?

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.

Getting Started

Implementation Instructions

How to integrate TM in a game

Test Project

Repo

Running Unit Tests

  1. In Unity, go to Window -> Test Runner
  2. Enable play mode tests in the Test Runner window
  3. Restart the editor
  4. 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

Other Things To Know

  • 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();

Building a .unitypackage for release

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

Still have questions?

Join the Contextual Data slack channel and hit us with your questions! #contextual-data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages