Skip to main content

How to Install Vuforia in your Unity file

  1. Launch the Package Manager and search Vuforia then click Install.

    image

    • The Vuforia Engine will be visible in the GameObject Menu.

      image

      If this menu is not shown, this means that you did not install Vuforia with Unity (Unity versions before 2019.2) or did not add the Vuforia Engine package to your project (Unity 2019.2 and later).

    • Start by adding an ARCamera. This is a Unity camera game object that includes the VuforiaBehaviour to add support for augmented reality apps for both handheld devices and digital eyewear.

      image

      Add an ARCamera GameObject from the Vuforia Engine menu.

    image

    Select the ARCamera and Open Vuforia Configuration from the Inspector

    image

    Add a Vuforia Development License Key in the App License Key field. For a guide on getting a license key, see Vuforia License Manager

    image

    image

    image

    Note: Delete the default Main Camera after adding an ARCamera. The ARCamera contains its own Camera component. The Main Camera is not needed unless you are using it to render a specific camera overlay, e.g. user interface.

    image

    image

    Vuforia: How to add Image Tracking Feature.#

  • After activating Vuforia Engine in Unity, you can add features from the Vuforia Engine menu to your project from the Unity GameObject Menu.

    image

  • Navigate to the Vuforia Engine Menu and select Image Target. or any of the other targets you wish to use. (VuMark, Ground Plane, and Mid Air are also trackable targets). For configurations for using other targets, please consult the Features Overview linked just above. It presents Unity guides for each Vuforia target.

    image

    Each Vuforia Engine GameObject can be configured in the Inspector. When a target is added, it will appear in the Hierarchy.

    image

    Select the Image Target GameObject from the Hierarchy and choose from the Type dropdown either

    image

    From database โ€“ Image Target databases can be made in the Vuforia Target Manager. Targets to the project. Vuforia will therefore ask you if you wish to Import Default Image Target Database in a pop-up window.

    image

    image

    Press Import.

    image

    image

    Note: Maintain an accurate scale between the Vuforia targets and physical prints or objects. Using targets that deviate in size from the real-life object you wish to track might impact the quality.