Hey,
I just started using Vuforia and Unity.
I am using Visual Studio and C# and could not find a solution for the following problem. Maybe I just lack of understanding.
As far as I see, the "DefaultTrackableEventHandler.cs" will enable/show the child components of the VuMark/ImageTarget in the scene in Unity.
I created my own EventHandler using ITrackableEventHandler which works totally fine. At moment it just does nothing but writing to the Debug.log.
My problem is that I removed the "DefaultTrackableEventHandler" Component from the VuMark/ImageTarget in Unity, but still the child elements will be enabled when I look at the VuMark or Image.
I tried debugging with break points to find out where the event for this behaviour is, but I can't find it.
After looking a lot through the documentation and forum for Vuforia I still found no solution.
Would appreciate any help for that. Thank you.
Hi JanSch,
I tested in the AR-VR sample found in the vuforia-samples-eyewear-unity-6-2-10 using the Vuforia-3-AR-VR scene and am seeing what you are referring to here. In this scene there is a script called "TransitionManager.cs" with a function called "UpdatedVisibleObjects." This function is modifying the visibility of various objects in the scene and is interfering with turning off the child objects in the image target within this scene.
I downloaded the basic sample project (the one you can get from the Unity asset store) and pulled open the Vuforia-3-ImageTarget scene. In this scene I turned off the child object in an ImageTarget and it would remain off when building and testing, as expected. This object still has the DefaultTrackableEventHandler script attached to it.
If this is different from what you're seeing, could you provide me with a sample that demonstrates the incorrect behavior that you're describing?