- Home /
 
               Question by 
               Yoconn · Jan 20, 2019 at 03:28 AM · 
                physics2dcollider2dcollision2dcompiler error  
              
 
              Updated Unity, 2D Colliders not working. OnTriggerEnter2D not working
I updated to the newest Unity since I wiped my laptop, and when I re-opened my project it had some compiler errors that didn't exist before.
public Collider2D playcoll; //The type or namespace name 'Collider2D' could not be found
Then in another script my OnTriggerEnter2D broke
 void OnTriggerEnter2D(Collision2D col)  //The type or namespace name 'Collision2D` could not be found
 {
      if(col.gameObject.tag == "Player")
      {
           yadayadaydada
      }
 }
My player.GetComponent().Sleep(); has a compile error as well and doesn't like the RigidBody2D. It appears anything 2D related is not found.
Did they change something, or did I setup my Microsoft Visual and Unity weird, I'm just confused and I tried to google it but was getting errors with the setup being wrong not the Collison/Collider2D being wrong.
thanks
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                