0% found this document useful (0 votes)
147 views3 pages

Optimization and AR Game in Unity

This document contains a few steps to optimize your unity game. And it also contains the steps for how you can setup AR with vuforia in unity

Uploaded by

Manish
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)
147 views3 pages

Optimization and AR Game in Unity

This document contains a few steps to optimize your unity game. And it also contains the steps for how you can setup AR with vuforia in unity

Uploaded by

Manish
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/ 3

Optimization of a game

1. build the project to see which asset is taking a lot of memory or space

2. open the console in unity ...hamburger menu ...editor log

3. in the notepad file search for build report

4. copy the path of an asset and paste it in unity asset folder

5. check override according to the platform and reduce the quality in max size
(resolution----512 or 1024)

6. change format ---- jpeg --- dxt 1 png - dxt 5

7. build again to reduce game build fine

AR
What is AR?

AR stands for Augmented Reality. AR is an interactive experience of a real-world


environment

the objects that reside in the real world are augmented by computer-generated
perceptual information.

AR is of 2 types ------ marker-based and marker less

marker-based - vuforia image target, cylinder target, multi-image target, 3d object. works
with all android devices 5.0 lollipop and above

Markerless - uses AR core and it requires flagship devices such as pixel 2 op6 galaxy
note 8/9 etc.

in unity, version 2018.2 and above AR is already inbuilt

STEPS TO ACTIVATE AR
1. go to project settings

2. build settings (Player settings)

3. XR settings (android tab)


4. check vuforia AR support

Creating A VUFORIA Database


1. Create a vuforia account ----- developer.vuforia.com

2. login to a vuforia account

3. go to develop tab

4. get development key

5. create an app name

6. copy the license key

7. go to unity

8. vuforia configuration and paste the license key in the inspector

9. go back to the website...develop...target manager...add database

10.select type device .... give a name ...create

11.click on the database that u just created.

12.add target select type single image.

13.choose an image jpg or png of your choice

14.give name to the target and width 1

15.click add and select the targets and download it (select unity editor while
downloading)

IMPORTING AR DATABASE INTO UNITY


1. Drag and drop the downloaded package into unity and import all once it opens

2. window......Vuforia config......make sure database is activated

3. if it is not present click on add database and add one database


CREATING AN AR PROJECT
1. Create a new scene

2. go to game object ...Vuforia...image

3. in the hierarchy ...select the Game Object called image target

4. In the inspector, change the database to the given database

5. if u have multiple image targets...select the required image target

6. Make sure Width and Height in advance is 1

7. Go to scene ...place a 3d object on top of the image target

8. make the 3d object as the child of the image target

9. save the scene and make a build and run it

MARKERLESS AR

1. In Android, it uses AR core

2. In iOS AR Kit

You might also like