- Home /
Question by
jenapier · May 20, 2019 at 11:22 AM ·
collisionfunctionmultipleoncollisionenter
Is calling OnCollisionEnter from multiple scripts bad?
I want to call OnCollisionEnter from 4 scripts on the same object, on one frame (every time it collides with a character).
Is that worse than calling it once from one large script? This would probably happen maximum once every second every now and again (like in combat).
Best practice/advice would be great.
Comment
Your answer
Follow this Question
Related Questions
destruction on impact 2 Answers
How to detect collision without OnCollisionEnter or OnTriggerEnter? 1 Answer
Why the "Detonator Explosion Framework" from AssetStore don't render in compiled game? 0 Answers
Smooth movement for the block upon player collision,Smooth box movement 0 Answers
Error with function OnTriggerXXX 1 Answer