- Home /
2 instances in the profiler but 1 script
My singleton toucheManager update() function is called twice. The script is not doubled but in the profiler it says "2 instances". Other scripts are also doubled and in the profiler it says that there is two instances. When I click on "EventSystem.Update()", the canvas in the Hierarchy window is illuminated. When I click the second "EventSystem.Update()", the same object is illuminated. For some reason, the Update() is called twice by the same object on the same frame.
Do you have any clue of what is happening?
Answer by attmaxess · Apr 19 at 02:48 AM
mChapuis : Did you find out the answer. I got the same problem. In my case, problem appears after I install the URP package.
I don't remember exactly what happened, but I remember it was something doubling the script somewhere. It wasn't a weird unity bug.