i’m speechless it’s 3:37 am right now, and I am losing my mind.
There’s very likely a script that is enabling it in an Update loop. Doing Find All References on the class name won’t find all uses because that only finds uses of the type/class name. So for example if you have the following code, it won’t find the second line.
var playerMovement = GetComponent<PlayerMovement>();
playerMovement.enabled = true;
Try searching for the string “movement” or find all references for .enabled and I’m sure you’ll find the cause.
1 Like
That! Just add a temporarly enabled = true;
line in that script, then right click on enabled to “find all references”.
I think it would also be possible to simply override the enabled property. Use new
keyword if required. Then you can set a breakpoint on the setter and debug.
1 Like
found the problem thank you so much drgrandayy