# How to create a Custom Image Target Demo

This section will discuss how to create your own Image target demo with the given scene in Easy AR

<figure><img src="https://1413926957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgATWbsXiFJ9V1pG3RP0K%2Fuploads%2F2LFT3Tba5x2EWSqWnzaj%2Ftargert%20image.png?alt=media&#x26;token=23c79b95-1b9d-4192-be51-1e04de27c976" alt=""><figcaption><p>This is the target image reference we are going to use</p></figcaption></figure>

**Step 1:** Go to <mark style="color:yellow;">Assets-> Easy AR -> Scenes</mark> folder and double click on Image Target scene to load the scene

<figure><img src="https://1413926957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgATWbsXiFJ9V1pG3RP0K%2Fuploads%2F3GjMLSZ5XbBDgTz4jaGF%2Fimage-059.png?alt=media&#x26;token=c072934d-ee26-49c9-a78e-c93e5888fd90" alt=""><figcaption></figcaption></figure>

**Step 2:** Select AR Session Origin Game object. There you can see the AR Tracked Image Manager component which includes our image reference library and tracked image prefab. Tracked image prefab which is a prefab that appears after tracking the image.

<figure><img src="https://1413926957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgATWbsXiFJ9V1pG3RP0K%2Fuploads%2FWPP9mmvmpArifjW8xX31%2Fimage-060.png?alt=media&#x26;token=c90421ee-1783-4287-8ec4-2db6270bf096" alt=""><figcaption></figcaption></figure>

**Step 3:** To change image reference go to <mark style="color:yellow;">Assets -> Easy AR -> Library</mark> folder. There is an XR reference image library called ReferenceImageLibrary. You can create this kind of XR reference image library by right-clicking on the project window, <mark style="color:yellow;">Create -> XR -> Reference Image Library</mark>.

<figure><img src="https://1413926957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgATWbsXiFJ9V1pG3RP0K%2Fuploads%2FkjkeXRK7sRC6PULBAioU%2Fimage-061.png?alt=media&#x26;token=94ae81e6-6105-45c6-b9d7-6dfb2486fec1" alt=""><figcaption></figcaption></figure>

**Step 4:** If you create a new Reference Image Library, rename it or edit a given Reference Image Library by selecting and checking the inspector

<figure><img src="https://1413926957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgATWbsXiFJ9V1pG3RP0K%2Fuploads%2Fsg8oNfZwfArowxZHjpjE%2Fimage-062.png?alt=media&#x26;token=9e7f4d1c-eb6a-4a23-b482-496c0624ba96" alt=""><figcaption></figcaption></figure>

**Step 5:** In this component the first element is texture that you need to track. Drag and drop your image (tracking image) to this element. Set name as you prefer in the Name field. Check specify size and set image real physical size in meters. Our image's real physical size is 15 cm so set as 0.15 to X and Y values. Also Check Keep texture at runtime field.&#x20;

**Step 6:** Then select AR Session origin, drag and drop our reference image library to the Serialize Library field in AR Tracked Image Manger script. Max number of moving images refers how many images need to track at same run time.

<figure><img src="https://1413926957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgATWbsXiFJ9V1pG3RP0K%2Fuploads%2F2elOcwKw4cIUy24hECtt%2Fimage-063.png?alt=media&#x26;token=75d8ef9d-f2f1-44aa-b29a-da0362fb3be1" alt=""><figcaption></figcaption></figure>

**Step 7:** Then it needs to set the Tracked image prefab. If you have prefab drag and drop into that field or you can create your own. Put your mesh into the hierarchy window.

<figure><img src="https://1413926957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgATWbsXiFJ9V1pG3RP0K%2Fuploads%2FteyAVHOeGN3xbhcegmEZ%2Fimage-064.png?alt=media&#x26;token=382812b2-1db3-4c3a-b5b3-9b8ceb7c7bb5" alt=""><figcaption></figcaption></figure>

I took the RI\_Humvee\_Vehicle vehicle from the Meshes folder. Set its scale to smaller like 0.3 all xyz.

<figure><img src="https://1413926957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgATWbsXiFJ9V1pG3RP0K%2Fuploads%2FZzDQBQFmHACDEag1gYEC%2Fimage-065.png?alt=media&#x26;token=9e957871-b1d4-49f4-92ef-bcc44f755b8e" alt=""><figcaption></figcaption></figure>

**Step 8:** Next convert this game object to prefab by dragging and dropping your game object from the hierarchy window to the prefabs folder. Then delete the game object from the hierarchy.

<figure><img src="https://1413926957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgATWbsXiFJ9V1pG3RP0K%2Fuploads%2FQ8w58dWEA5POOAAFQeDk%2Fimage-066.png?alt=media&#x26;token=08a759d5-a20a-4501-8b96-4363b62b1a7b" alt=""><figcaption></figcaption></figure>

**Step 9:** Select back AR Session Origin. Set the newly created prefab into the Tracked Image Prefab field.

<figure><img src="https://1413926957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgATWbsXiFJ9V1pG3RP0K%2Fuploads%2FgtaBEYyukHfAGKnzOQnF%2Fimage-067.png?alt=media&#x26;token=7f484ff5-5c9c-4357-adea-2127366b8c05" alt=""><figcaption></figcaption></figure>

**Step 10:** Now you can build the scene by going to <mark style="color:yellow;">File -> Build Settings</mark>. In the Build settings window check whether the Image Target scene available on the scenes in build. Click the build button to build the app.
