Log in or register to post comments

undesired repetitive target acquisition

December 9, 2019 - 10:58am #1

Hello all:

I am an inexperienced user of Unity who is attempting to complete a project begun by someone else with Unity 2017.3.f03, and I am continuing to develop with that version. It makes use of Vuforia and involves acquiring a standard 2D target image. A problem has abruptly appeared that I was not having previously. When I play the project and present an appropriate target image to lock onto, several graphics appear as I expect them to in response to this event. However, one of them gets "stuck" in the sense that instances of it stack up on top of each other apparently ad infinitum instead of it's appearing just once as I expect. Has anyone else experienced similar behavior?

Thank you.

Don

undesired repetitive target acquisition

December 11, 2019 - 3:24pm #3

Thank you for your prompt response.

Unfortunately, I do not know which script is instantiating the effects. I am attaching a screen shot of the inspector window for the game object "ImageTarget" in the project that I've inherited. While googling several days ago, I came upon a forum thread somewhere that suggested that typically a script called "Default Trackable Event Handler" is used to determine what is to be done when the event of image target acquisition occurs. You can see from the screenshot, that "ImageTarget" has a script with this name as a component (I've inspected it, and it seems to contain relevant code) as well as a script called "Mikes_Default Trackable Event Handler" which is set to be inactive through its checkbox. What is strange is that in the process of troubleshooting, I have unchecked the "active" check box for "Default Trackable Event Handler" as well, yet objects still appear in response to target acquisition, and I don't know where the directives to do so are coming from.

There is an inactive child of "ImageTarget" called "Misc" which becomes active and therefore visible as soon as the target image is acquired, as do any of its active children, but again I do not know what script is controlling this. I have looked in all obvious script folders, have searched by type "script" in my project window and have searched for "script" in my hierarchy window, but I haven't figured out where the relevant code resides.

Don

undesired repetitive target acquisition

December 10, 2019 - 1:15am #2

Hi,

You need to Debug the instantiating process of the particular effect. Basically add a Debug.Log("whatever fits the purpose") in the script and check step by step the process.

Do you know which script is instantiating the effects? If yes, please share it to have a look.

Thank you.

Vuforia Engine Support

Log in or register to post comments