Question by
Unidesky · May 04, 2018 at 03:25 AM ·
scripting problemrigidbody
Since 2018.1, Rigidbody doesn't work.
I am trying to make a Breakout game using a tutorial and it requires Rigidbody and script to call it, but since the 2018 update it says the usual rb = GetComponent(); doesn't work saying it's not available in the 2018 version, so what's the replacement?
Also if is there any other changes in the commands that me and whoever reads this can use, i'll be thankful.
Comment
Answer by NathanGG · May 04, 2018 at 02:54 PM
@Unidesky You should try saying public Rigidbody rb;
and finish the script. After the script is finished attach it to the Game Object and there should be a window saying rb and an empty space next to it. Drag the Game Object's rigidbody in there and voila!
Your answer
![](https://koobas.hobune.stream/wayback/20220612162013im_/https://answers.unity.com/themes/thub/images/avi.jpg)