Skip to main content
1-Visitor
February 19, 2021
Solved

Disable gestures until all steps finished playing (Hololens)

  • February 19, 2021
  • 1 reply
  • 1456 views

Is it possible to disable the gesture until all steps finished playing? Example, after the last step (step 10) in first view done playing, the gesture automatically enable. 

 

Or is there any other solution to prevent from user skip the first view? 

 

Thanks

Best answer by sebben

Hi,

 

assuming you have a 3DButton to change the view you can add an if statement to the navigate function and check if the sequence is in the last step. For example:

$scope.checkStep = function(){
 if($scope.view.wdg["model-1"].currentStep == 10){
 $scope.navigate("viewname");
 }
}

Call the function from the click event of the button. It will only work if the current step is equal to 10.

1 reply

sebben14-AlexandriteAnswer
14-Alexandrite
February 19, 2021

Hi,

 

assuming you have a 3DButton to change the view you can add an if statement to the navigate function and check if the sequence is in the last step. For example:

$scope.checkStep = function(){
 if($scope.view.wdg["model-1"].currentStep == 10){
 $scope.navigate("viewname");
 }
}

Call the function from the click event of the button. It will only work if the current step is equal to 10.

AS161-VisitorAuthor
1-Visitor
February 22, 2021

Thank you so much