
Quiz of Fundamental of Gameplay Programming
Quiz by Ulka Chandini Pendit
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Which Unity window contains list of all the game objects currently in your scene?
Visual Studio is not a part of Unity. You could use a different code editor to edit your C# scripts if you want to.
In what order do you put the words when you aredeclaring a new variable?
public float speed = 20.0f;
Which of the following variables would be visible in the Inspector?Â
public float speed;
float turnSpeed = 45.0f;
private float horizontalInput;
private float forwardInput;
What is a possible value for the horizontalInput variable?
horizontalInput = Input.GetAxis("Horizontal");
What is true about the following two lines of code?
transform.Translate(Vector3.forward);
transform.Translate(1, 0, 0);
Which of the following lines of code is using standard Unity naming conventions?
/* a */ Public Float Speed = 40.0f;
/* b */ public float Speed = 40.0f;
/* c */ public float Speed = 40.0f;
/* d */ public float speed = 40.0f;
Which comment would best describe the code below?
horizontalInput = Input.GetAxis("Horizontal");
transform.Rotate(Vector3.up, horizontalInput);
Which method is used for having camera follow the player?
Which window you use to change the setting of your GameObject?
Calculate the total movement of the car in a machine that runs in 20 fps and moving forward with the speed 10 using Time.deltaTime
What is the correct script for detecting position of playerÂ
Which one is the correct script for changing the position of the current GameObject?
What is not TRUE about transform.Rotate for?
Why Unity use transform in method such as, transform.Translate and transform.Rotate?
We want the car to move in managable speed? What should we change?Â
void Update()
{
// Move the vehicle forward
transform.Translate(Vector3.forward * speed);
}
What is NOT true about variable?