documentation

Visometry.VisionLib.SDK.Examples.ModelSwitcher Class Reference

Enables switching between several models. More...

Inherits MonoBehaviour.

Data Structures

class  ModelURI
 

Public Member Functions

void NextModel ()
 Switches to the next model in the modelURIs array.
 
void OnDisable ()
 
void OnEnable ()
 
void Reset ()
 Resets the ModelSwitcher to display and track the first model in the modelURIs list.
 
void SetModel (int modelIndex)
 Activates the model specified by the index in Unity and the vlSDK. The tracking will be reset after setting the new model. More...
 

Data Fields

ModelTracker modelTracker
 
ModelURI[] modelURIs
 

Detailed Description

Enables switching between several models.

Member Function Documentation

◆ SetModel()

void Visometry.VisionLib.SDK.Examples.ModelSwitcher.SetModel ( int  modelIndex)
inline

Activates the model specified by the index in Unity and the vlSDK. The tracking will be reset after setting the new model.

Parameters
modelIndexIndex of the model, which should be activated. The index has to be between 0 and modelURIs.Lenght