ARKit and Unity

One of the major updates for the new release for IOS-11 has been ARKit. As of the date IOS 11 is still not released for the public but there’s a beta version out for developers to play around with. If you browse the web there are already some interesting demos circulating, showcasing some of the features…  

AR has been around for some time, but in older versions of IOS you had to rely on computer vision based libraries. One common approach was marker based tracking.

Marker based AR works by recognising and tracking predefined square shaped images. It scales and aligns the 3D-world to the marker and draws the 3D objects in the foreground.

ARKit is only supported by 6S+ and newer models but if you want to build an app to support all models here are some libraries to check out for marker based AR;


ARKits new technology is based on Visual Inertial Odometry, it works by finding and tracking points in the camera view while you are moving about. Together with the motion sensor data from the phone it can keep an approximation of your position in the room. From this data ARKit can extract horizontal planes, feature points and lightning information in the scene.

To identify feature points there has to be enough visual information in the view. The more contrast there is in an image the easier it is to find points. For instance a white wall will have no feature points, while a black and white mesh which will have multiple points.

ARKit doesn’t have any depth sensing technology. It can’t occlude objects which means that objects are always drawn on top of the video image. There are speculations that the new Iphone will have a depth sensing camera like the Tango phone and Hololens. Both of them creates a spatial mesh of the environment that is used for occlusion and collision detection for really immersive effects.

Things to keep in mind when designing the app…

  • The plane tracking is not very accurate at finding the edges of a surface and it’s not very fast at detecting planes. You have to move the phone around for some seconds to track the surface. It’s battery draining to track for feature points. Turn off the tracking when you don’t need it.
  • The tracking won’t work when there’s not enough light information and wont work in dark environments.
  • For rendering you have the choice of SceneKit, SpriteKit, Metal or your custom rendering implementation.
  • If you want to use Unity with ARKit you can download a plugin here with some easy to get you started example scenes;

Make a portal hole in the ground with Unity and ARKit

This tutorial is for making a peek hole in the ground with the Unity plugin and ARKit. The final result you can see here;

When you press on the floor a hole opens up and you can have a look inside. In this tutorial we will only be making the hole. To make the inner world is up to you.

For this tutorial you will need;

  • Unity 5.6.1p1 or later
  • IOS 11 or later
  • Iphone 6S+ or later
  • Unity ARKit plugin:

  • file with the hole animation and textures that you can download here:


Preparing the scene

1. Create a new Unity project and load the Unity plugin by dragging it into the assets folder.

2. Open the UnityARKitScene in the assets folder. It already has everything setup for AR and is a good base to start off.

3. We won’t be needing some of the assets, so in the Hierarchy view delete the RandomCube and HitCube objects. You can disable the Point cloud particles and Generate planes, we won’t be needing those. In the inspector view uncheck them. The hierarchy should look like this;

4. Next we are going to prepare our asset. Create a new Prefabs folder in Assets and import the hole.fbx file by dragging it in the Prefabs folder.

5. Fbx files stores both object and animations. Drag the provided hole.fbx file into the scene hierarchy. Make sure you drag it under the root of the hierarchy. The scale is off, but that’s an easy fix. Just select the hole, under model in the hole Import Settings change the Scale Factor from 1 to 2.

Setting up the Animation

If you take a look at the prefab it consists of 4 meshes; innerbox, hole_edge, hole_inside and hole_top. If you select some of the objects in the hole you’ll notice in the Inspector that there’s a skinned mesh renderer applied. The hole has a blend shape animation attached.

If you look in the prefab there’s also an animation clip “Take 001”. It’s the animation for the blend shapes that animates the hole from open to close. Next we are going to connect the animation clip to the hole.

6. Create a new Scenes directory in the Assets folder. In there create a new animator controller; Assets > Create > Animator controller. Rename it to Hole animator controller.

7. Select the hole asset in the view, it has an Animator component attached already. Drag the “Hole animator controller” to the Controller field of the Animator to connect it.

8. If you double click Hole animator controller the Animator view will open up. Go to Prefabs and drag the “Take 001” into the view to connect it to the Animator. Now the animation clip is connected to the hole.

9. Since the hole animation animates from open to close we need to reverse it. Select the “Take 001” and in the inspector change the speed to -0.6. This way it’s going to play from close to open and make the animation a bit slower.


Next we are going to create the materials for the hole. The insidebox will get a black material just to simulate an emptiness when you peek in. For the hole_inside there’s a dark texture. The hole_top will get an occlusion material that will hide everything inside the box. And the hole_edge that is the outer glowing edge of the hole will get an additive shader that will blend with the environment.    

9. Drag the downloaded textures “edge.png” and “hole.png” to scenes to import them.

10. First we’ll create the black material for the inside of the box. Assets > Create > Material. Rename the material to Innerbox_mat. Select the material and in the Albedo property change the color to black and smoothness to 0. Turn on Emissions. This will give the shader a static black color. Now drag the material onto the “innerbox” to apply it.

11. Next create a new material and name it “Hole_inside_mat”. Select the material and in the Albedo property select the little circle that will let you pick a texture. Pick the “hole” texture. There’s an alpha inside the texture. To be able to render it you have to change the Rendering Mode from Opaque to Cutout. Drag the material onto the hole_inside object.  

Depth mask shader

12. Now we are going to create the Occlusion material for the outer box that will hide everything that renders inside of it. For this we have to create a custom mask shader that will occlude geometry behind. The custom shader will make the geometry appear as if it was invisible by rendering the geometry in different passes and then reversing the order of how the passes are drawn in the view.

Create a new material. Rename it to “hole_top_mat”. Then create > shader > standard surface shader. Rename it to Mask. Double click the shader to open it and in the editor replace everything with this code:

Shader "Custom/Mask" {

   SubShader {
   //In the Tags section we define different properties for the subshader.
         //The main geometry render in the Geometry Pass. By Changing the Geometry pass to -1 we make sure it renders first.
         "Queue" = "Background"
         //The ZWrite On value turns on the render to Z-buffer. It's needed for proper sorting of the rendered passes.
         ZWrite On

         //We don’t want to render the color pass; ColorMask 0 will do the trick.
         ColorMask 0

         Pass {}

12.We are going to add the Mask shader to the hole_top_mat material. In the inspector view of the material change Shader from standard to Occlusion/Mask. Drag the material on top of the hole_top object and you should see in the viewport how the box seem to disappear.

13. Lastly we will create the glowing edge material. Create a new material. Rename it to “hole_edge_mat”. In the inspector change the shader from standard to Mobile > Particles > Additive. This material will blend with what’s rendered behind. The additive effect will appear as it’s glowing. In the inspector change the texture to hole_ege.png. Apply the new material to the hole_edge obj and your scene should look like this.

Hit test

When we have the animation and materials setup, we are going to setup so that we can place the box in the world. This will be done with help of a hit test script . The Unity ARKit plugin comes with a starter example script for this.

14. In the scene view set the hole as child to the HitCubeParent object. Also delete the HitCube object, we won’t need it.

15. We want to center the origin of the hole to the HitCube parent, so in the Inspector view set the x,y,z properties for the hole position to 0.

16. Add a new script Component to the hole by selecting the hole and in the Inspector view select Add Component; Scripts > UnityEngine.XR.ios >Unity AR Hit Test Example. The script component will have a Hit Transform property. Drag the HitCubeParent from the Scene to connect it to the HitCube. Consequently, whenever the screen is pressed and a collision is detected it will move the HitCubeParent to that position. 

17. Now the box moves the right position when a collision is detected, but we need to trigger the animation to start animate from close to open. To do this we have to open up the Hit test example script. Right click the cog icon next to the Unity AR Hit Test Example Script. And select edit script in the menu.

18. We need to add a reference to the animation in order to start it. Add an animation variable.

 private Animator animation;

19. We’ll instantiate it in the Start function; Add the start function. Since we already have connected the animation clip to the hole object you can get it through getComponent;

void Start() 
       animation = GetComponent ();

20. Next we are going to play the animation whenever we get a touch and collision detection. In the Update function add the play animation call just before return. Set the animation name to the name of our clip “Take 001”, the layer to 0,  and the frame to 0f which will start the animation from frame 0.

animation.Play ("Take 001", 0, 0.0f);

Here is what the final UnityARHitTestExample.cs  looks like;

using System;
using System.Collections.Generic;
namespace UnityEngine.XR.iOS
	public class UnityARHitTestExample : MonoBehaviour
		public Transform m_HitTransform;

		Animator animation;

        bool HitTestWithResultType (ARPoint point, ARHitTestResultType resultTypes)
            List hitResults = UnityARSessionNativeInterface.GetARSessionNativeInterface ().HitTest (point, resultTypes);
            if (hitResults.Count > 0) {
                foreach (var hitResult in hitResults) {
                    Debug.Log ("Got hit!");
                    m_HitTransform.position = UnityARMatrixOps.GetPosition (hitResult.worldTransform);
                    m_HitTransform.rotation = UnityARMatrixOps.GetRotation (hitResult.worldTransform);
                    return true;
            return false;

		void Start() {
			 animation = GetComponent<Animator>();
		// Update is called once per frame
		void Update () {
			if (Input.touchCount > 0 && m_HitTransform != null)
				var touch = Input.GetTouch(0);
				if (touch.phase == TouchPhase.Began)
					var screenPosition = Camera.main.ScreenToViewportPoint(touch.position);
					ARPoint point = new ARPoint {
						x = screenPosition.x,
						y = screenPosition.y

                    // prioritize reults types
                    ARHitTestResultType[] resultTypes = {
                        // if you want to use infinite planes use this:
                    foreach (ARHitTestResultType resultType in resultTypes)
						if (HitTestWithResultType (point, resultType))
							animation.Play ("Take 001", 0, 0.0f);


Making the inside of the box

The world inside the portal is empty for now. Making the inner world is not a part of this tutorial. But there are great free assets in the Assets store that you can download and put inside the hole. I used the Vast Outer Space 1.0 which have planets sky textures, particles and other great space assets. For now we are going to put some spheres inside as a temp.

21. Create an empty game object. GameObject > Create Empty and parent it under the hole object in the hierarchy. Rename it to “inner_world”. Inside we’ll create some spheres.Create 2 spheres, scale them and move them so that they are fitted inside the box. Make sure to parent them under the inner_world.

Export to XCode

Now that we have everything setup, let’s export our app and try it out.  

22. Go to file > build settings Select IOS as platform and press Switch platform.

23. Select Player Settings. Change type in your app name in the Bundle Identifier section. And write a message in the camera Usage Description.

24. Build the app. Unity will create an XCode project for you. Open the the project in xcode, select your signing certificate and run the app on a physical phone.


Press somewhere on the screen, you will see the hole opening up. It might take a while for the plane detection to work and nothing might happen right away. But be patient and move the camera about.

This Post Has 74 Comments

  1. Guille

    Thanks a lot for this tutorial.
    I love it! And now that we have the Unity Arkit Remote plugin things are faster to update and test.

    Keep uploading tutorials like this please.


    1. Gina Adamova

      Glad to hear :)

  2. Guille

    Also I am using an iPhone 6 and it all works fine, just need to cheat a bit to get it working.

    1. Gina Adamova

      Interesting, will have to try it out on a 6. What did you do to make it work?

  3. Guille

    Right now Im having some errors with your project but in the past I managed to run apps with real time world tracking on my iPhone 6 through Unity/Vuforia.

    The trick was to Build for iOS selecting UnityARKitScene instead of ARKitRemote/UnityARKitRemote from the Build Settings screen.
    For other ARKit projects I just go to info.plist and from Required device capabilities remove Item 1 – arkit
    And for the Apple ARKit demo app what I did was comment the following code of ViewController.swift:
    if ARWorldTrackingSessionConfiguration.isSupported {
    } else {
    let sessionErrorMsg = “This app requires world tracking. World tracking is only available on iOS devices with A9 processor or newer. ” +
    “Please quit the application.”
    displayErrorMessage(title: “Unsupported platform”, message: sessionErrorMsg, allowRestart: false)

    And then uncomment just the following line:

  4. Ashley Mitchell

    Awesome tutorial. It is my lack of coding knowledge that has let me down :( Any chance I could have a scene file to look at? I am so close.

      1. Ashley Mitchell

        Thanks for the upload :) I have the ‘Missing Prefab’ issue. Did you use Blender by any chance? I just want to see the finished Hit test example script (I am code noob). Any chance you could screenshot the script for me?
        One final Q.. I failed a previous test using the Unity ARPlugin. I think it is because I am using the iPhone 6S, not the iPhone 6Splus?
        Many thanks for your help Gina, you are a wizard!

        1. Gina Adamova

          Hi Ashley,
          I used Maya for the hole. weird you have the missing prefab issue. Can you see which one is missing?
          If you look in the blogpost part 20. I’ve updated that part to include the whole Hit test script.
          I haven’t tried with the 6S, but it should work with both 6S and 6S+.
          Hope this helps :).

          1. Ashley Mitchell

            Hey Gina,
            I got it working! epic.. thanks for the pointers. I was using the wrong version of unity to start with.
            animation = GetComponent ();
            fixed my error.
            Thank you for your hard work. All is working with iPhone 6s. If you would like me to send a screenshot of the missing prefabs issue please drop me an email.

  5. Jørgen

    Hi Gina,

    Really loved the tutorial. Built it three times and still could not get it right. I am a newbie to Unity :-)

    I am wondering if it is possible to ask you to do a project for me. It will be based on what you already have done in this tutorial.

    Looking forward to hearing from you.

    1. Gina Adamova

      Send me an email to, maybe I can help you out.
      I’m glad you enjoyed reading, if you need any help with the tutorial please do post. I’ll answer as best as I can!

    1. Gina Adamova

      Thanks! It looks like a skybox map. Basically a 3D texture of the environment on the inner side of the 3d world.
      I haven’t tried it but you probably would also be able to achieve that by triggering the hide/unhide of different parts of the environment based on the camera position, when you enter the door you could display a larger part of the environment.

      1. Airvant

        Thanks, Gina!
        I had use trigger hide/unhide other parts of environment which behind the default camera. It works, but not very well. I try to improve it now.
        by the way, your occlusion material is Awesome, it’s key to portal effect!

  6. Valerie

    Hi! I can’t seem to make the box become transparent even though I followed your instructions for the shader…

    1. Gina Adamova

      Hi Valerie, I’m sorry to hear. Does your material icon look transparent in the Project panel?

    2. Josh

      In Mash.Shader replace “Geometry – 1” with “Geometry-1”. (remove the spaces)

  7. Jenita Alice

    Hey there!! I have been struggling for the past week to make the HitTest and canvas with buttons to work alongside. Can you help me with them please.

    1. Gina Adamova

      Hi Jenita, What it is that you are trying to do?

  8. BarryWhite

    Hi Gina,

    getting the following error.

    Shader Custom/Mask uses undefined Queue: ‘Geometry -1’

    any help would be appreciated.

    1. Gina Adamova

      Can you open the Mask.shader and exchange the content with this instead:

      Shader “Masked/Mask2” {

      SubShader {
      // Render the mask after regular geometry, but before masked geometry and
      // transparent things.

      Tags {“Queue” = “Background”}

      // Don’t draw in the RGBA channels; just the depth buffer

      ColorMask 0
      ZWrite On

      // Do nothing specific in the pass:

      Pass {}

  9. Preston

    This is great. I’m still trying to get it to work after about 5 tries now. I keep seeing a pink shader after putting the code up above in the comment. “Not supported on GPU”

  10. IMC89

    Hi Gina,
    I have the same error :
    Shader Custom/Mask uses undefined Queue: ‘Geometry -1’
    I take the download file on the post but the error persist.
    any help, thanks.

    1. Gina Adamova

      What version of Unity do you have?

  11. Dieter

    when I export to Xcode there are 20 errors , It doesnt work u-u

    1. Gina Adamova

      What are the errors?

      1. Dieter

        Apple Mach-O Linker (ld) Error Group
        : “_GetTrackingQuality”, referenced from:
        : “_GetYUVTexCoordScale”, referenced from:
        : “_GetAmbientIntensity”, referenced from:
        : “_unity_CreateNativeARSession”, referenced from:
        : “_IsARKitSessionConfigurationSupported”, referenced from:
        : “_PauseSession”, referenced from:
        : “_StartSessionWithOptions”, referenced from:
        : “_HitTest”, referenced from:
        : “_StartWorldTrackingSessionWithOptions”, referenced from:
        : “_GetVideoTextureHandles”, referenced from:
        : “_GetLastHitTestResult”, referenced from:
        : “_SetCameraNearFar”, referenced from:
        : “_StartWorldTrackingSession”, referenced from:
        : “_GetARPointCloud”, referenced from:
        : “_IsARKitWorldTrackingSessionConfigurationSupported”, referenced from:
        : “_StartSession”, referenced from:
        : Linker command failed with exit code 1 (use -v to see invocation)

      2. Dieter

        Si lo intento pasar al movil entonces aparecen unos 50 errores, no sé porque

  12. Dieter

    I have an iphone 6s and when I put the build project in Xcode there are a lot of errors.
    Can you upload the finish proyect for iphone 6s please ? thanks a lot

  13. Dieter

    I have this error when I add animation = GetComponent ();
    The error :
    using the generic method unityengine.component.getcomponent t ()’ requires 1′ type argument(s)

    please help I want to finish this tutorial u-u

    1. Dieter

      Ok I fix it with
      void Start() {
      animation = GetComponent ();


  14. Daniel

    Hi Gina,

    Thanks so much for the tutorial. I am getting the following caution and error:

    private Animator animation; ‘UnityEngine.XR.iOS.UnityARHitTestExample.animation’ hides inherited member ‘UnityEngine.Component.animation’. Use the new keyword if hiding was intended

    and the error is:

    animation = GetComponent (); Using the generic method ‘UnityEngine.Component.GetComponent()’ requires ‘1’ type argument(s)

    I’m trying to teach this tutorial to some students next week and would love if you could help!


    1. Gina Adamova

      Hi Daniel,

      Check the comment just above yours from Dieter. It seemed like he had the same issue. See if you are missing the Start function. Just add this in the UnityARHitTestExample.

      void Start() {
      animation = GetComponent ();

      If you still have trouble, let me know and I’ll se if I can help you.


  15. Gina:
    This is really amazing work. I am an Earth Science Teacher at a SW Virginia High School, and I would love to use this app in my classroom as a magical “worm hole” when I discuss cosmology in my class. Imagine the students filling in what is in the hole, maybe guided by Hubble images. I am running Unity 2017.1.1f, and cannot get it to work. I am running into the component error, and the scripting reference says the animation Get Component code has been removed for Unity 2017.1.1f. See: file:///Applications/Unity/
    I have tried changing the animator variable animation from private to public and setting the animator in the inspector for the hole but that is not working. I also cannot get the hole to line up with the floor or get the box to be transparent. For some reason, the occlusion/mask shader is not in 2017.1.1f. I am going to revert my Unity back to
    Unity 5.6.1p1, and try your project folder.

    1. Gina Adamova

      Hi Willam,
      What a wonderful idea, to use it in your science class!
      After some updates in Unity, I had to edit the tutorial slightly. If you take a look at the new UnityARHitTest example, you can see a working version. I also have uploaded a test project for you download with animation.

      Let me know if you run into any other issues, I’ll be glad to help you out!

      The version of Unity I’m using is 2017.1.0, latest XCode 9 to date.

  16. DnSweben

    Hi all,

    I really like this tutorial.
    I just have some small issue’s with locationing the ‘portal’, it’s always… ‘offset’ how can we do this more proper on the ‘floor’ ?
    p.s. the given fix for the error : animation = GetComponent (); Using the generic method ‘UnityEngine.Component.GetComponent()’ requires ‘1’ type argument(s)
    Is not working, but might be due to html tags being stripped out here
    Change animation = GetComponent (); to: animation = GetComponent<Animator>();
    (Change < to )**Just in case it’ll show up as the actual symbol…

    1. Gina Adamova

      Glad to hear :)
      You can adjust the positioning by select the “hole” object in the hierarchy and move it around as you please. If you look in the Inspector panel > Transform > Position, The x, y, z should be 0 if you want the hole to appear in the center aligned with the floor.

  17. DnSweben

    Sorry, the symbols are shown :) Please ignore the (Change < to )** part.

  18. Arek

    Hi, I have Mac with not the newest macOS Sierra (10.12.6). Could it be a reason, why I have dark blue screen, after running this app, with no response? I had updated my iOS on Ipad to 11.0.2 version, and it did not help.
    Does anyone have similar issue with dark blue screen aftern run this project on device?

      1. Arek

        My iPad is too old. It works correctly on iPhone6s Plus. Thanks! ;)

  19. Craig

    Did anyone resolve the Occlusion/Mask missing Shader? I have version 2017.2.0b11

  20. Deb Catalano

    Thanks Gina! This is a great tutorial, my first stab at ARKit. I had to change the code in the Mask shader to “Queue” = “Background”, and changed “animation = GetComponent();” to “animation = GetCompoenent():”, then it all worked for me.

    Can you tell me how you learned unity and ARKit? I’m new to both (but have 3D and software background) and I’m looking for the best and fastest way to learn this stuff. Any suggestions on training?

    Thanks so much for this!


    1. Gina Adamova

      Thanks! I’ll update my tutorial.
      I’m an IOS-developer but I have worked with VFX for many years. For that reason it was easy to pickup for me. If you are comfortable with Unity, you can do a lot without having to know anything about IOS. I learned Unity by reading up online there’s plenty of tutorials as well. For me it’s easier to do handson projects of my own, and read up on issues that comes along the way. Handson experience is always the best. And for Unity and ARKit there’s tutorials online as well. I would recommend also getting to know the basics what is possible and what’s not and how it all works. Which is explained pretty good at the Apple introduction video:

  21. Deb Catalano

    sorry, my last post was incorrect. I changed GetComponent(); to GetComponent\();.

  22. Deb Catalano

    Sorry, it won’t let me enter the proper text here! it’s GetComponent, followed by the less than sign, Animator, greater than sign, ();

  23. Gina:
    I finished my first ARKit project and put a spiral galaxy in the hole. I added a rotate script to the galaxy to slowly make it spin. I would like to put the app for free on the Apple App Store if that is ok with you. I have about a dozen students who could then download it and use it in class. I have gotten good feedback from other teachers, and would like to work with you on an AR project. Please email me if you are interested at: for more details.

  24. Lars Matthäus

    When i test the app, the Portal isnt on the ground. Somehow i stand right into the Portal. Any ideas ?

    1. Gina Adamova

      It might be the positioning of the hole object inside the hitcube parent that’s off. Check your transformation panel for the hole and make sure the position is set to 0 for x,y,z.

  25. Bella

    Hi Gina!

    Not sure if I missed something obvious – I think I’m fairly experienced with Unity so many I’m just not paying close enough attention. But I think I’m missing a folding or something. What exactly are you referring to in step one when you say ” load the Unity plugin by dragging it into the assets folder.” I went into the asset store and downloaded the ARKit plugin and went in and grabbed the example scene. Is that correct?
    And also, I don’t have all these files that you’re referring to. I downloaded your and imported that, but there’s only the .fbx and two pngs in there.
    Please help!

    Thank you :)

    1. Gina Adamova

      Hi Bella,

      Yes you are right, you can just download the plugin from the Asset store and open the example scene and work from there. That’s perfectly fine. One of the early releases you could have downloaded the plugin the way I described.
      The hole.fbx and the two pngs are what you need to finish the tutorial.


  26. tasos

    Hey Gina, thanks for the super tutorial!

    I’ve been trying it for a while, I was getting similar errors to the other guys, but in the end I managed to publish it to my phone fine; but my issue was that the “Hole” and everything was already there and I was inside it; not sure where I went wrong, so I tried opening your scene from the link you’ve posted above. That works fine up to the final point, where I get this error when Xcode tries to Run it on my phone:

    clang: error: no such file or directory:
    ‘… … /ARkitHole/Libraries/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/’
    clang: error: no input files

    The files are there, so no clue what it’s talking about!

    Sorry, not a coder, so it might be something very simple that I’m missing.

    Thanks again!

    1. Gina Adamova

      Sorry for the late reply,

      About the problem with that you appear in the hole, it sounds like the position of the hole is off… it should appear about where you press on the ground. If you select the hole object in the hierarchy if you look at the transformation, it should be 0. for x, y and z.

  27. vincent

    Hey Gina,
    Was wondering if you know if its possible to combine markers with ARkit?

    1. Gina Adamova

      Hi Vincent,
      Not from within the ARKit framework. But ARKit is based on AW-Foundation video stream. You could use the underlying video to track for markers with a separate library. Like the Vision library.

  28. Glenn

    Great Tutorial! I have checked my hole transform and all others… and it is 0,0,0. But I still see the hole above the ground. Also, when u touch the screen the hole is immediately open – no animation. thoughts?


  29. Joan

    Hi Gina,
    It’s a really nice tutorial, very helpful and easy to understand. Congratulations, is a very nice work and it will help so many people.
    There’s a question from Craig in October that is interesting to solve:
    Did anyone resolve the Occlusion/Mask missing Shader?
    I can’t “drag the material on top of the hole_top object” and I don’t “see in the viewport how the box seem to disappear”. It’s like the material doesn’t act like the previous materials.
    I want to create an AR app for a museum in Barcelona, I’m new in Unity so any help will help me a lot.
    Thanks Gina!

  30. Tony Munoz

    Hi. Excellent tutorial.
    I have a question: you mentioned that plane tracking is battery draining and that we should stop track as soon as possible. Can you tell me how to stop it?

  31. Jessica

    This is an amazing tutorial, thanks for posting! However, when I click, I sometimes I end up ‘inside’ the portal, rather than looking at it in front of me. Do you know how I can stop this from happening? I’m new to Unity (and coding!). Many thanks :)

  32. Grant

    Great tutorial. I’m interested in trying something similar using ARKit (also interested in the face tracking), but I don’t own a mac.
    Will I need a mac to get this kind of thing working? I noticed xcode is a requirement for the Unity plugin, so I’m guessing yes.
    If so, would would be the recommended specs for a mac laptop for running all this. Thanks again!

  33. Pat

    Hi Gina,

    Love your super awesome tutorial!
    Everything works perfect.

    Except one thing – the real world isn’t showing up. It’s all black on the screen, but I can still see the hole’s animation, occlusion and placement. I use an iPhone 8, with Unity 2017.3 1f1, and Xcode 9.2.

    Please help. Thanks so much!

    PS: Hope this comment doesn’t show up twice

  34. Carl

    I tried to do step 12, but it won’t let me drag the hole_top_mat onto the hole_top object, and instead the rest of the scene outside of the box becomes “echo-y”. When I move the scene around or zoom in/out, there are afterimages of the box on the screen. Help?

  35. sam gustav

    Hi Gina i am trying to add a ground plane recognition and image recognition feature in the single scene can you please tell me whether it can be done and if yes please tell me how i’ll be highly thankful for your reply.

  36. Maria

    Great insight on how to become an Augmented Reality developer. Always love your posts! 😌
    Thank you for sharing really useful guide . I can not fail to note that virtual reality app development and augmented reality development is really a future that covers most areas of our lives.

  37. Usability Testing

    I want to learn about arkit and unity, so your writing is very useful for me.
    Thank you so much, I will read and improve my job.

Leave a Reply