I’m returning to a Unity project I haven’t touched in a few years, and I’m relearning what I previously did.
There’s a class (obstacle_script) that is being created at game start, and I can’t figure out what’s calling it.
I’ve tried right-clicking the script in the asset manager and using “Find References in Scene”. This highlights one (and only one) object in the scene, called “virtual_section1”. However, that game object does not have a component for the script in question (but Unity seems to think otherwise). A breakpoint in the Start() function in the script is hit, but there’s no callstack - it’s just the breakpoint line with no parents. I tried doing a “Find in Files” through Visual Studio on the word “obstacle” with . as the type, and I only found the script itself.
Is there any way to call a script without assigning it to an object? What could I be missing?