Unity Certified User Programmer Practice Questions - Unity Certified User Programmer Exam

Access More Questions
A script throws a NullReferenceException on the line rb.AddForce(Vector3.up); where rb is declared as private Rigidbody rb;. What is the most likely cause?
Correct Answer:
The rb field was never assigned, so it is still null

Access more questions from this quiz

Continue to Unity Certified User Programmer Practice Questions - Unity Certified User Programmer Exam for more practice questions and the full quiz experience.

Access More Questions