Log in or register to post comments

Enable / Disable Guide View Mode

May 8, 2019 - 2:45am #3

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.

Regards,

Oliver

 

Enable / Disable Guide View Mode

May 9, 2019 - 11:55am #2

Hello,

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

Thanks,

Vuforia Engine Support

Enable / Disable Guide View Mode

August 13, 2019 - 11:08am #1

The fix I found was the following:

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

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

 

Log in or register to post comments