Laser not instantiated laser clone does not get a rigid body 2D component. Followed exactly what instructed in lectures didn’t get this error in the previous 2018.2 version. Currently using 2019.1
2 Likes
I Didn’t Went through That Course but I think You Should Try Add Add an RigidBody2D Component The Player Laser In Script just after instantiating it.
like
GameObject playerLaser = Instantiate<...>(...);
playerLaser.AddComponent<RigidBody2D>();
See If This Fix The Issue and if you want rigidbody2d to have some specific property you may add it afterwards
Solved… I attached Rigid Body 2D component on player prefab instead of Player Laser
1 Like
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.