Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Game development
/
Unity fundamentals
A saved Prefab has speed = 3 in the Inspector. The script initializer changes from 3 to 5…
from Unity fundamentals
Unity 6.6
beginner
1 min
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.
Check
Ask AI about this kata
Report an error
previous kata
Review generated door follower
Review AI code
next kata
Spot the bug in the player follower
Spot the bug
A new version is available
Reload