Question

Due to a ChangeState operation, how many times does a state’s Enter function get called ?...

Due to a ChangeState operation, how many times does a state’s Enter function get called ?

A. None; the Enter function is never called due to a ChangeState operation

B. Once

C. Over and over

D. Twice: once for current state and once for the new state

E: N times: once every frame

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Option (C) is the correct answer.

Due to a ChangeState operation, a state’s Enter function gets called over and over. It may be called in the function, it may be called in the state's header based on the requirement. These are all parts of the ChangeState operation. So, there is no fixed number of calls for a state’s Enter function.

Option (A) is incorrect as the Enter function is called due to a ChangeState operation.

Option (B) is incorrect as the Enter function is not called once due to a ChangeState operation.

Option (D) is incorrect as the Enter function is not called twice due to a ChangeState operation.

Option (E) is incorrect as the Enter function is not called for every frame due to a ChangeState operation.

Please comment in case of any doubt.
Please upvote if this helps.

Add a comment
Know the answer?
Add Answer to:
Due to a ChangeState operation, how many times does a state’s Enter function get called ?...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT