Unity Trigger States and Conditions

Unity Trigger States and Conditions

6th - 8th Grade

13 Qs

quiz-placeholder

Similar activities

Semester 1- Exploration of Robotics (Units 5-7)

Semester 1- Exploration of Robotics (Units 5-7)

6th - 8th Grade

17 Qs

Google Aptitude Test

Google Aptitude Test

KG - University

10 Qs

Spreadsheets

Spreadsheets

6th - 8th Grade

13 Qs

Copyright & Fair Use scenarios

Copyright & Fair Use scenarios

6th - 8th Grade

8 Qs

Informatica Exercise

Informatica Exercise

7th Grade

10 Qs

Grade-8

Grade-8

8th Grade

10 Qs

BIM1014 Quiz 2

BIM1014 Quiz 2

KG - University

15 Qs

Cyber Security

Cyber Security

1st - 10th Grade

10 Qs

Unity Trigger States and Conditions

Unity Trigger States and Conditions

Assessment

Quiz

Computers

6th - 8th Grade

Practice Problem

Medium

Created by

Darion Taylor

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does "Triggering a state" mean in Unity?

Resetting the entire game to its original state

rearranging the objects state or condition based off the scene

to create an if statement regarding the object's position in the script

changing an object's behavior, appearance, or condition based off input

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following sets a trigger state when a coin is collected?

if (coinsCollected = true)

if (coinsCollected == true)

if coinsCollected == true;

coinsCollected = if (true)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What state does the player appear to be in?

int health = 0;

The player is fully healed

The player has just leveled up

The player is dead or has no health

The player is at level 0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which condition will detect if the player is holding the “W” key to move forward?

if (Input.GetKey(KeyCode.W))

if (Input.GetKey("W"))

if (Input.HoldKey(KeyCode.W))

if (KeyCode.W.Pressed())

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What’s the best way to turn on a light when the player presses “L”?

if (Input.GetKeyDown("L")) {

lightOn = true;

}

if (Input.GetKeyDown(KeyCode.L)) {

lightOn = true;

}

if (KeyCode.L = pressed) {

lightOn = true;

}

if (L.GetKeyDown()) {

lightOn = true;

}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jump(), OpenDoor(), or TakeDamage() would be good Triggering methods for handling different states

TRUE

FALSE

No idea

Null

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What condition correctly checks if the player pressed the Space key?

if

(Input.GotKey(KeyCode.Space)))


if

(GetKey(KeyCode.Space))

if

(Input.GetKey(.Space))

if

(Input.GetKey(KeyCode.Space))

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?