Skip to Content
Augmented Reality for Developers
book

Augmented Reality for Developers

by Jonathan Linowes, Krystian Babilinski
October 2017
Intermediate to advanced
548 pages
13h 23m
English
Packt Publishing
Content preview from Augmented Reality for Developers

App state manager

We are going to add an AppStateManager to the project. Let's begin by making the object and then write the component script:

  1. In the root of the Hierarchy, create an empty game object, and name it AppStateManager.
  2. In the Scripts folder create a new C# script named AppStateManager and drag it onto AppStateManager as a component.

Open the AppStateManager script for editing, as follows:

File: AppStateManager.cs

First, we'll declare the appState and a large set of public variables that will be explained as we use them:

using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; using Vuforia; public class AppStateManager : MonoBehaviour { private AppStates appState; //Vuforia scripts that are used to get the state ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Augmented Reality Game Development

Augmented Reality Game Development

Micheal Lanham
Augmented Reality

Augmented Reality

Joseph Rampolla, Greg Kipper

Publisher Resources

ISBN: 9781787286436Supplemental Content