-
Notifications
You must be signed in to change notification settings - Fork 68
Add new tasks to an existing Landmarks compatible environment
Watch the Video Tutorial (click to open or right-click and open in a new tab/window):
Objective: Recreate the demo_SimpleSample_50x50.unity scene by adding tasks to the demo/SimpleSample_50x50.unity scene
-
From the Unity Editor, open Assets/Landmarks/Scenes/SimpleSample_50x50.unity
-
In the hierarchy, expand the parent GameObjects so the
Tasks
GameObject is visible (_Landmarks_/LM_Experiment/LM_Timeline/Tasks
). -
In the project window, navigate to Assets/Landmarks/Prefabs and drag the
TASK_LearnTargets
prefab onto theTasks
GameObject so it is placed as a child in the hierarchy window.- In the hierarchy, expand
TASK_LearnTargets
and select theViewTargets
GameObject. - In the inspector window, set the "repeat" value to 1 (you can choose any integer and this will determine how many times the task will repeat practicing each target object.
- In the hierarchy, expand
-
In the project window, navigate to Assets/Landmarks/Prefabs and drag the
TASK_NavigationTask
prefab onto theTasks
GameObject so it is placed as a child in the hierarchy window.- In the hierarchy, select
TASK_NavigationTask
and note the "repeat" value is set to 1 (we will leave it at 1, but you may change it to any integer you like to add blocks of navigation). Each block includes navigation to all TargetObjects in a randomized order.
- In the hierarchy, select
-
Click the "Play" button in the Unity editor window. The scene should now operate exactly as it would if you opened the preconfigured demo scene detailed in the previous section (Assets/Landmarks/Scenes/demo/demo_SimpleSample_50x50.unity).