- Home /
Question by
tcz8 · Oct 21, 2018 at 04:57 AM ·
scripting problemprofilerapifindobjectoftypecamera.render
Why is FindObjectOfType() called during Camera.Render? It's not in my code.
Every time I shoot a bullet, I see several calls to FindObjectOfType appear in the profiler under Camera.Render.
I ran a search through all my code, inspected it manually and I can confirm that I am not using it anywhere.
Could it be called indirectly by another command like FindObjectsWithTags? But even then, it's not used when firing bullets. Any ideas what could be calling it? Does any of unity's built in commands use it?
Thank you!
Comment