Log in or register to post comments

I am getting this error: There may be only one VuforiaBehaviour instance in the scene

Unity Editor
May 5, 2022 - 1:02pm #1

In my unity script I load and unload scenes that have AreaTargets (I am using LoadSceneMode.Additive).

Everything works fine while testing on unity editor, but once I run the application on my Ipad I get this error while switching between scenes:

"There may be only one VuforiaBehaviour instance in the scene"

sometimes, I get another error:

NullReferenceException: Object reference not set to an instance of an object"\.

DefaultObserverEventHandler.OnDestroy () (at <0000...000>:0)

Does anyone have any idea about it?

 

Platform: 

I am getting this error: There may be only one VuforiaBehaviour instance in the scene

May 18, 2022 - 7:58am #3

Hey there,

 

Can you validate if the ARCamera isn't loaded twice (from the current and previous scene)? LoadSceneMode.Additive adds the current scene to the other loaded scenes. This could mean that two ARCamera's are added and that's why you might receive the error.

 

Kind regards,

Patrick Scheper

Technical Community Manager

I am getting this error: There may be only one VuforiaBehaviour instance in the scene

May 16, 2022 - 4:53am #2

Hey I have the same issue, do you have any solution yet? I am running it on Unity with the Hololens

Log in or register to post comments