Topic locked

Modify Vuforia Sample

January 10, 2021 - 5:15pm #1

I am trying to modify the Vumark scene in Vuforia sample for use in my own project. I would like to remove some things in the scene but can't seem to figure out the correct references in code.

These are the things I am trying to remove:

1. image of the Vumark instance that appears on top of the physical vumark

2. The box showing the info about detected vumark instance. See screenshot

Which scripts do I need modify and what are the specific lines of code? Are the relevant scripts the following files in \Assets\SampleResources\SceneAssets\VuMarks\Scripts folder: VuMarkHandler.cs, VuMarkTrackableEventHandler.cs, VuMarkTrackableStatusUI.cs? Or are there any additional scripts?

Image icon vumark_info.png12.01 KB

Modify Vuforia Sample

January 21, 2021 - 10:33pm #3

I tried unchecking in inspector the Vuforia Content-> VuMark->Info->Canvas->VuMarkPanel->IconPanel->Icon. This results with application crashing with the following:

IndexOutOfRangeException: Index was outside the bounds of the array.

VuMarkHandler.SetVuMarkInfoForCanvas (Vuforia.VuMarkBehaviour vumarkBehaviour) (at Assets/SampleResources/SceneAssets/VuMarks/Scripts/VuMarkHandler.cs:253)

VuMarkHandler+<OnVuMarkTargetAvailable>d__18.MoveNext () (at Assets/SampleResources/SceneAssets/VuMarks/Scripts/VuMarkHandler.cs:143)

UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <e98ed0368295432e8c11e52d6243ee11>:0)

I tried commenting out the line 253 and tried to follow the code. This leads to various Null exceptions.

Need some help with disabling / commenting out the correct parts of code in VuMarkHandler script and any other relevant scripts so that an image of the Vumark is not shown among the augmented reality content.

Also tried unchecking UIContent-> InfoPanelContollers, but the box showing info about VuMark instance still appears.




Modify Vuforia Sample

January 12, 2021 - 3:51am #2


In regards to your questions

1. Vuforia Content-> VuMark->Info->Canvas->VuMarkPanel->IconPanel->Icon

2. UIContent->InfoPanelContollers (script: vuforiaStateInfo.cs)

Hope this helps.

Vuforia Engine Support

Topic locked