Question by
BlazingGlass · Feb 26, 2019 at 01:03 AM ·
scripting problemcollidertriggercontrollerrigidbody2d
Collider/Trigger script without Rigidbody2D component attached not working
Hey all. I have searched through forums but couldn't find an answer that can help me. I have made a 2D game script based on Character controller type with raycasting. Not one rigidbody2D attached. So i am trying to make a change scene script with OnTriggerEnter2D, OnCollisionEnter2D, if statements, compare collider tags, compare transforms etc. Tags and layers are checked for spelling. Scene manager syntax is checked as well. Also Is Trigger is unchecked when using OnCollisionEnter2D. In general i follow Unity's syntax for functions and components. But nothing seems to work, like ignoring completely the BoxCollider2D components or the trigger state of one of the two colliding objects. Any enlightening is much appreciated.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612192502im_/https://answers.unity.com/themes/thub/images/avi.jpg)