0% found this document useful (0 votes)
14 views23 pages

Creating My First AR Using Unity & Vuforia

The document provides step-by-step instructions for creating an augmented reality application using Unity and Vuforia. It details how to set up a Unity project, import Vuforia assets, create an image target database, add 3D models to targets, and build and deploy the AR application to an Android device. The instructions cover the full workflow from project setup to final application build.

Uploaded by

YUNG CHEE CHIN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views23 pages

Creating My First AR Using Unity & Vuforia

The document provides step-by-step instructions for creating an augmented reality application using Unity and Vuforia. It details how to set up a Unity project, import Vuforia assets, create an image target database, add 3D models to targets, and build and deploy the AR application to an Android device. The instructions cover the full workflow from project setup to final application build.

Uploaded by

YUNG CHEE CHIN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Creating My First AR using Unity & Vuforia

1. Open Unity app

2. Sign into your Unity ID. If you don’t have, create one.

3. To go to Unity Asset Store, click on this icon then select Asset Store.
4. You will see the Asset Store open in another window like thi s.

5. You can search for 3D object sort by price like this. You can also search for anything using the search
function at the top of the screen.
6. Let’s get back to Unity and start creating New Project

7. Set your Project Name. By default, the project folder is located in your Documents.
8. Unity interface look like this

9. Go to menu File  Build Settings


10. Build Settings  Switch to Android Platform

11. Then click on Player Setting


12. Look at Inspector panel  XR Setting  Select ‘Vuforia Augmented Reality’. Then close Build Setting
window.

13. Delete MAIN CAMERA in the Hierarchy: SampleScene


14. Add AR Camera to Hierarchy: SampleScene. Go to menu ‘Game Object’  Vuforia  AR Camera

15. Import Vuforia Assets

16. Now Vuforia is listed in your Asset and ready to use.


17. In Hierarchy: SampleScene, create Image Target. Go to menu GameObject  Vuforia  Image

18. Click Import


19. Click on AR Camera, in Inspector  Open Vuforia Configuration

20. Inspector  Vuforia Configuration  App License Key  Click button ‘Add License’
21. You will be redirected to Vuforia website. Log in to your Vuforia account. Click on ‘Get Development Key’

22. Create License Name. Check the Term and Condition Checkbox. Click ‘Confirm’
23. Your new license key is listed in License Manager. Now click on the name of your license key.

24. Copy the license key.


25. Go back to Unity, paste the license key in the App License Key area.

26. In Hierarchy: SampleScene, select ImageTarget. Look at Inspector --> Click ‘Add Target’ to make new
Image Target Database
27. You will be redirected back to Vuforia. Click “Add Database”

28. Give name to your new Database. Select ‘Device’ for the Type options. Click ‘Create’.

29. Your database is now created in Target Manager. Then click on the database name.
30. Click ‘Add Target’

31. Select ‘Single Image’ type. Then ‘Browse’ your image target to be uploaded in the database. Set the
width of your target. Name your target (no spacing). Then click button ‘Add’.
32. Your image will be upload to the database. Wait for a while for Processing Status to Active. The best
target is high rating image.

33. The target is Active and ready to be used.

34. Select all your target. Then Download Database.


35. Select development platform  Unity Editor. Then click ‘Download’.

36. Save the database package file to your Project Folder.

37. Now import Image Target on Unity Program. Go to Asset --> Import Package.
38. In Import package dialog box, select the Unity Package you just download. Then click ‘Open’.

39. Click ‘Import’


40. In Hierarchy: SampleScene, select ImageTarget. Look at Inspector, you can change the target image by
selecting your Database & Image Target.

41. Now we are going to add 3D model onto the ImageTarget. Go to Unity Asset Store, search and “Add to
My Asset” any 3D object that you want to use.
42. Then go to your account and choose ‘My Assets’.

43. Then choose ‘Open in Unity’ to show the 3D model in Unity to be downloaded.

44. Download the object by clicking on the ‘Download’ button.


45. Then import the object to Unity by clicking the ‘Import’ button.

46. Click ‘Import’ button in the ’Import Unity Package’ dialog box.

47. Now your 3D object is added in your Asset.


48. Open the object folder, then drag the 3D model into your ImageTarget. Resize and adjust your 3D model
to be nicely place on your ImageTarget. Make sure the object is for the ImageTarget, look at the indentation
of the hierarchy.

Click and drag

49. If the 3D model has animation, you can edit value in Inspector > Animator.

50. Go to menu ‘File’  Build Setting. Click on ‘Player Settings’.


51. You can set the icon of your mobile app by ‘Select’ image for the Default Icon.

52. In Other Settings  Identification, you can change the Package Name and set the minimum API level to
the lowest value.
53. Then click on the ‘Build And Run’ button if your mobile devices is connected to your computer. Or you
can just ‘Build’ the APK file and install it manually to your device.

54. Give name and set location to save your APK file.

You might also like