By R42Interactive
on Wed, 05/08/2019 - 09:45
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
Hello,
Hello,
Note that the ModelTarget prefab has a way to disable the guide view. See attached screen grab.
The fix I found was the
The fix I found was the following:
@object.GetComponent<ModelTargetBehaviour>().GuideViewMode = ModelTargetBehaviour.GuideViewDisplayMode.GuideView3D;
@object.GetComponent<ModelTargetBehaviour>().GuideViewMode = ModelTargetBehaviour.GuideViewDisplayMode.GuideView2D;