Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A saved Prefab has speed = 3 in the Inspector. The script initializer changes from 3 to 5. What happens to that existing Prefab value?" on CodeWiki (https://codewiki.com/practice/mcq/gamedev/unity-fundamentals/serialized-default/).
Context (verbatim from the page):
"""
A saved Prefab has speed = 3 in the Inspector. The script initializer changes from 3 to 5. What happens to that existing Prefab value?
It normally remains 3 because the serialized asset value takes precedence.
It always becomes 5 at the next compilation.
Unity averages the two values and stores 4.
The component is removed because its schema changed.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Game development. Where you are unsure, say so.