C# Класс CloudRecoEventHandler3, 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.
Наследование: MonoBehaviour, ICloudRecoEventHandler
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
AssetName string
BundleURL string
ImageTargetTemplate ImageTargetBehaviour,
version int

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
DownloadAndCache ( ) : IEnumerator
RestartApplication ( ) : void

Описание методов

OnGUI() публичный Метод

draw the sample GUI and error messages
public OnGUI ( ) : void
Результат void

OnInitError() публичный Метод

visualize initialization errors
public OnInitError ( TargetFinder, initError ) : void
initError TargetFinder,
Результат void

OnInitialized() публичный Метод

called when TargetFinder has been initialized successfully
public OnInitialized ( ) : void
Результат void

OnNewSearchResult() публичный Метод

Handles new search results
public OnNewSearchResult ( TargetFinder, targetSearchResult ) : void
targetSearchResult TargetFinder,
Результат void

OnStateChanged() публичный Метод

when we start scanning, unregister Trackable from the ImageTargetTemplate, then delete all trackables
public OnStateChanged ( bool scanning ) : void
scanning bool
Результат void

OnUpdateError() публичный Метод

visualize update errors
public OnUpdateError ( TargetFinder, updateError ) : void
updateError TargetFinder,
Результат void

Start() публичный Метод

register for events at the CloudRecoBehaviour
public Start ( ) : void
Результат void

Описание свойств

AssetName публичное свойство

public string AssetName
Результат string

BundleURL публичное свойство

public string BundleURL
Результат string

ImageTargetTemplate публичное свойство

can be set in the Unity inspector to reference a ImageTargetBehaviour that is used for augmentations of new cloud reco results.
public ImageTargetBehaviour, ImageTargetTemplate
Результат ImageTargetBehaviour,

version публичное свойство

public int version
Результат int