
- #Target unity candle how to
- #Target unity candle license key
Set the parameter Runtime Occlusion Mesh to add a runtime mesh that occlude other GameObjects. The following two parameters will not render or display anything over the Model Target. This adds the benefit of using the mesh directly from the Model Target instead of copying the mesh into the app. The Model Targets Behaviour component has options to add and use its Model Target’s mesh at runtime for collision detection and occlusion. Please see Optimizing Model Target Tracking for details on the tracking mode for Model Targets. The mode AR_CONTROLLER can only be set here or with the API. Tracking configuration of the Model TargetĪ Model Target will have a Optimize Tracking For mode set from when it was created in the MTG, however, you can change this mode to any of the available options in the Inspector. Test your Model Target with Vuforia’s Play Mode in Unity by pressing the Play button in Unity. TIP: You can import content for the Viking Lander or the toy vehicle through the Vuforia Core Samples package. Add a cube or other content as a child to the Model Target GameObject. For more information on scaling Model Targets, see Best Practices for Scaling Model Targets and Virtual Scene Scale Factor in Unity. If you are using a miniature version of a large-scale real-world object for development, you will need to change the dimensions to match the real-world object when shipping your production app. In the Inspector window of the Model Target, verify that the Physical Length, Physical Width, and Physical Height fields match the dimensions of your real-world object, in meters. Size differences between the physical object and the Model Target is known to affect tracking quality. The purpose of this model is to aid you in placing an augmentation relative to specific parts of the physical object itself - it is only visible in the scene view of the Unity Editor and it will not appear at runtime. The preview in the scene can be hidden by disabling the enable Visualization in Model Target Preview component. A preview model representing the Model Target will be shown in the Scene. TIP: Disable the model extraction from databases if you only need to track the targets.Ī Model Target GameObject needs a Database and Model Target assigned to it from the Inspector panel. TIP: You can verify that a database was added from the overview in the Vuforia Configuration (Cmd+Shift+V/Ctrl+Shift+V). If you have your own Model Target generated, import the database by selecting Assets -> Import Package -> Custom Package… and select the. Select GameObject -> Vuforia Engine -> Model Target. A default Model Target database comprised of the NASA Viking Lander with two Guide Views (front and back) can then be added if no Model Target database was detected.
Alternatively, a default Model Target database with the Viking Lander can be imported by creating a ModelTarget GameObject before importing a database. unitypackage file generated from the MTG tool. If you haven't already done so, generate a Model Target database using the Model Target Generator. NOTE: Device tracking is enabled by default. It is recommended to use Device Tracking with Model Targets.
#Target unity candle how to
Please refer to the Vuforia License Manager guide on how to obtain a Vuforia Engine license key.
#Target unity candle license key
Obtain a License Key for your project. Replace the default Main Camera with an ARCamera from GameObject -> Vuforia Engine -> AR Camera. Add the Vuforia Engine package to your Unity project as explained in this article.
For supported Unity Editor versions, see Supported Versions. We recommend having the physical object present to test the tracking quality and digital content with a webcam or a device. See Getting Started with Vuforia Engine in Unity if you are unfamiliar with Vuforia Engine in Unity.
Set up Unity with Vuforia Engine and Model Targets