C# Class CloudRecoEventHandler2, NewCloud

This MonoBehaviour implements the Cloud Reco Event handling for this sample. It registers itself at the CloudRecoBehaviour and is notified of new search results as well as error messages The current state is visualized and new results are enabled using the TargetFinder API.
Inheritance: MonoBehaviour, ICloudRecoEventHandler
Afficher le fichier Open project: nileshlg2003/NewCloud

Méthodes publiques

Свойство Type Description
AssetName string
BundleURL string
ImageTargetTemplate ImageTargetBehaviour,
JsonServerUrl string
titleb string
version int

Méthodes publiques

Méthode Description
OnGUI ( ) : void

draw the sample GUI and error messages

OnInitError ( TargetFinder, initError ) : void

visualize initialization errors

OnInitialized ( ) : void

called when TargetFinder has been initialized successfully

OnNewSearchResult ( TargetFinder, targetSearchResult ) : void

Handles new search results

OnStateChanged ( bool scanning ) : void

when we start scanning, unregister Trackable from the ImageTargetTemplate, then delete all trackables

OnUpdateError ( TargetFinder, updateError ) : void

visualize update errors

Start ( ) : void

register for events at the CloudRecoBehaviour

Private Methods

Méthode Description
DownloadAndCache ( ) : IEnumerator
LoadJSONBookData ( string jsonBookUrl ) : void
RestartApplication ( ) : void

Method Details

OnGUI() public méthode

draw the sample GUI and error messages
public OnGUI ( ) : void
Résultat void

OnInitError() public méthode

visualize initialization errors
public OnInitError ( TargetFinder, initError ) : void
initError TargetFinder,
Résultat void

OnInitialized() public méthode

called when TargetFinder has been initialized successfully
public OnInitialized ( ) : void
Résultat void

OnNewSearchResult() public méthode

Handles new search results
public OnNewSearchResult ( TargetFinder, targetSearchResult ) : void
targetSearchResult TargetFinder,
Résultat void

OnStateChanged() public méthode

when we start scanning, unregister Trackable from the ImageTargetTemplate, then delete all trackables
public OnStateChanged ( bool scanning ) : void
scanning bool
Résultat void

OnUpdateError() public méthode

visualize update errors
public OnUpdateError ( TargetFinder, updateError ) : void
updateError TargetFinder,
Résultat void

Start() public méthode

register for events at the CloudRecoBehaviour
public Start ( ) : void
Résultat void

Property Details

AssetName public_oe property

public string AssetName
Résultat string

BundleURL public_oe property

public string BundleURL
Résultat string

ImageTargetTemplate public_oe property

can be set in the Unity inspector to reference a ImageTargetBehaviour that is used for augmentations of new cloud reco results.
public ImageTargetBehaviour, ImageTargetTemplate
Résultat ImageTargetBehaviour,

JsonServerUrl public_oe property

public string JsonServerUrl
Résultat string

titleb public_oe property

public string titleb
Résultat string

version public_oe property

public int version
Résultat int