Unity Editor Live Preview
Live Preview feature allows you to test all the Wikitude SDK functionality directly in the Unity Editor, without having to constantly build on a device.
To enable it, select the
WikitudeCamera game object and in the inspector make sure that
Enable Live Preview is turned on. When enabled, the
WikitudeCamera script will choose one of the following modes as an input source.
This mode allows you to track a static image in the Unity editor, which is mostly useful to quickly test the same image repeatedly. The
Static Image field will appear when this mode is selected and you can use any image from your project, as long as it has
Read/Write Enabled turned on in the Texture Importer settings.
In this mode, the
WikitudeCamera will try to find all the available cameras connected to your computer and use one of them as input for tracking. The
WebCams dropdown allows you to select which camera should be used. If set to
Default, the first camera found will be used.
This mode allows you to use the camera on your device, if it is connected to your computer and has the
Unity Remote app installed and running. Please check the Unity Documentation for more information on how to get the remote app to work. This mode is very useful in case your computer doesn't have any cameras attached.
Instant Tracking will only work properly in this mode, because we can use all the sensors from the connected device, which are not available in other modes.