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 |
Enables switching between several models.
|
inline |
Activates the model specified by the index in Unity and the vlSDK. The tracking will be reset after setting the new model.
modelIndex | Index of the model, which should be activated. The index has to be between 0 and modelURIs.Lenght |