Search code examples
unity-game-enginevuforia

There is no ImageTarget in Assets/Vuforia/Prefabs


I followed the instructions to use Vuforia. But when I add ImageTarget, I found there is no ImageTarget in my Assets/Vuforia/Prefabs

The version of my unity is 2018.2.18f1.

I want to create an ImageTarget and Put the resources such as the model we need to display under ImageTarget as its child exists.

enter image description here

The picture here is what I got in Assets/Vuforia/Prefabs.


Solution

  • You don't need the prefab.

    See Unity Manual: Adding Image Targets to your Scene

    You can simply generate a new ImageTarget by clicking on GameObjectVuforiaImage

    enter image description here

    This should add all required components like ImageTargetBehaviour, DefaultTrackableEventHandler, TurnOffBehaviour, MeshFilter and MeshRenderer.


    You can also create it yourself from scratch by simply putting all the required components on an empty GameObject.


    And then go on with configuring your database and target.

    enter image description here