- Home /
Works after restart then crashes again ! "There is no 'Collider attached... a script is trying to access it"
Hi there, I have an unusual bug, first time happens to me.
When I launch the scene, works perfectly, until i test the game a few times, and independently of the small changes I do, this error pops up, even though, I put the Collider Component MANUALLY, it is shown in the inspector, and STILL error pops up.
After restart, works again. Could be problematic in-game, and slows me down now. Do you know why it would happen?
void Start()
{
handSocketL = GameObject.FindGameObjectWithTag("hand");
handCol = handSocketL.GetComponent<Collider>();
//very simple access of an object's component...
}
collider-bug.jpg
(417.2 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612133029im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why do I sometimes hit my Collider and sometimes not 1 Answer
Bizarre hit.collider.tag behavior 0 Answers
isTrigger not working 2 Answers
OnMouseOver with 2 overlapping object not working properly 0 Answers
"Missing Collider2D" 2 Answers