Log in or register to post comments

Enable / Disable Guide View Mode

May 8, 2019 - 2:45am #1

Is there a way to enable or disable the guide view or change the guide view mode visa C# script?

A logical use case example may be if you would like to have multiple trackable behaviours in a scene ie. an image target, a markerless target, a model target - and have the ability to toggle the visibility of the guide view so that it does not obstruct the view of other trackables if the model target has not yet been detected.




Enable / Disable Guide View Mode

August 13, 2019 - 11:08am #3

The fix I found was the following:

@object.GetComponent<ModelTargetBehaviour>().GuideViewMode = ModelTargetBehaviour.GuideViewDisplayMode.GuideView3D;

@object.GetComponent<ModelTargetBehaviour>().GuideViewMode = ModelTargetBehaviour.GuideViewDisplayMode.GuideView2D;


Enable / Disable Guide View Mode

May 9, 2019 - 11:55am #2


Note that the ModelTarget prefab has a way to disable the guide view. See attached screen grab.

For sample code on how to do this in C#, please download the 8.1.X version of the Vuforia Engine Core samples, available on the Asset Store. See Assets/SamplesResources/SceneAssets/ModelTargetsTrained/Scripts/BaseModelRecoEventHandler.cs


Vuforia Engine Support

Log in or register to post comments