Wrapping it all up, learn how to connect the dialog system you created to your AR manager to launch and display the engine part name.
- [Instructor] Now that we have our dialog system almost ready to go, we have one last thing to do. Let's expand our game objects and navigate down to Canvas. On the canvas we need to ferry the events from the screen to the canvas. We do this using a graphic raycaster. Click on Add Component and Add Graphic Raycaster. Now that we can get the events to the dialog, we need to alter the AR manager to launch the dialog. Go and navigate to your AR manager script. Double-click to open up in your script editor. The first thing I'm going to add is a reference to the dialog. So we're going to make a new public variable under editor fields, and we're going to add the model dialog, and call it dialog. Fantastic. Now that we have our reference, we want to do something with that reference. We're going to copy that and go down to where we log out the name of the mesh. Instead of logging out the name of the mesh, we're going to launch the dialog with that name of the mesh included. It's going to use that new set function we created. Add the reference to the dialog.Set. In Set, we need to pass through a message in level BD. Name of the object. Great. One last code change that we need to make is to stop the dialog launching every time we touch the mesh, even if the dialog is up. To do that we got to alter this if statement here. We're going to add, if the dialog is not visible. Now that we have our AR manager script set up, let's go back to Unity. In Unity we need to hook up the dialog to the AR manager. Let's click on AR Manager, navigate down to our dialog, and drag the dialog object into the dialog slot in the AR manager, and that's it, or project is ready to go. It's time to make a new compile. Remember to go up to File, Build Settings, switch to your platform, and hit Build.
- The value of mobile AR in AEC
- Setting up AR in Unity
- Configuring Unity to build for iOS
- Running your AR app on Android devices
- Working with Unity AR Remote
- Setting up your UI for an application log screen
- Aligning your assets to your AR world
- Creating the dialog UI
- Importing CAD data
Skill Level Intermediate
Unity: AR Visualization 02 Basic Interactivitywith Roger Miller2h 39m Intermediate
Unity: AR Visualization 03 Complex Interactivitywith Roger Miller2h 34m Intermediate
2. Setting Up AR in Unity
3. Publishing Your AR Experience
4. Getting Going with Unity AR Remote
5. Populating Your AR World
6. Adding Simple Interaction
7. Bonus: Importing CAD Data
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.