GetComponent<Rigidbody2D>()

image

Getting an error when i try to use GetComponent in the launch the ball lesson. Did i miss anything?


managed to get it to work

Hi Robert,

Please hover your mouse over GetComponent. What does the compiler say?

Privacy & Terms