OnTriggerEnter no longer works
It's not a problem with missing collider or rigidbody. Same code same settings on objects, one box with rigidbody and collider that's a trigger and player walking into it with collider (no trigger or rigidbody), same layer just to be sure but it makes no difference. I made a demo few months back with that simple setup works just fine, but now in my new project it no longer works. OnTriggerStay, OnCollisionEnter and OnCollisionStay don't register ether I have no idea why.
I've tried messing with script execution order, no luck there, maybe worth mentioning that i have lot more game objects and scripts in current project.
Anyone have any idea what might be the problem?
just this won't work:
void OnTriggerEnter(Collider col) {
Debug.Log("It just works");
}
Edit: To clarify I don't use collisions or rigidbodies anywhere else.
Answer by DrDobry · Aug 15, 2020 at 10:54 PM
I figured it out, I disabled Auto Simulation and Auto Sync Transforms in Project Settings -> Physics. Check those back on if you have the same problem.
Your answer
Follow this Question
Related Questions
Trigger not detected 0 Answers
Problem dealing with colliders in a complex project [SOLVED] 0 Answers
OnTriggerEnter is not called 1 Answer
How to make a growing mesh 0 Answers