Wikitude Unity Plugin
Public Attributes | Properties | List of all members
Wikitude.TargetCollectionResource Class Reference

Represends a resource that was initialized witha .wtc (Wikitude Target Collection) or .wtm (Wikitude Target map) file. The file can be loaded either from the device, if it was stored in the StreamingAssets folder, or from a remote server. If the file was loaded from a server, no internet connection is required anymore after loading finished successfully. More...

Inherits Wikitude.TargetSource.

Public Attributes

OnFinishLoadingEvent OnFinishLoading = new OnFinishLoadingEvent()
 Called whenever the resource was successfully loaded from the given URL. More...
 

Properties

string TargetPath [get, set]
 Path or URL to a .wtc or .wtm file used for tracking. More...
 
bool UseCustomURL [get, set]
 If false, TargetPath is considered relative to the StreamingAssets folder. More...
 

Detailed Description

Represends a resource that was initialized witha .wtc (Wikitude Target Collection) or .wtm (Wikitude Target map) file. The file can be loaded either from the device, if it was stored in the StreamingAssets folder, or from a remote server. If the file was loaded from a server, no internet connection is required anymore after loading finished successfully.

When Target Collection Resource is created at runtime, make sure that all the relevant properties are set before the Start method is called by Unity. At Start, the native representation is created and all information needs to be available.

Member Data Documentation

OnFinishLoadingEvent Wikitude.TargetCollectionResource.OnFinishLoading = new OnFinishLoadingEvent()

Called whenever the resource was successfully loaded from the given URL.

Property Documentation

string Wikitude.TargetCollectionResource.TargetPath
getset

Path or URL to a .wtc or .wtm file used for tracking.

If UseCustomUrl is disabled, the path is considered relative to the StreamingAssets folder, otherwise, it needs to be the absolute path, prefixed with the appropriate protocol (file:// or http(s)://).

bool Wikitude.TargetCollectionResource.UseCustomURL
getset

If false, TargetPath is considered relative to the StreamingAssets folder.

If true, TargetPath is considered absolute and prefixed with the appropriate protocol.