Unity Issue Tracker - A script public variable value is not used when set in the Inspector window
Closed
UUM-31425
A script public variable value is not used when set in the Inspector window
Unity: Serialization
Won't Fix
2023.2.X
2023.1.X
2022.2.X
2021.3.X
2020.3.X
As described in the comment this is an issue in the customer script.
Reproduction steps:
1. Open the attached project “GravityProject”
2. Open the scene “Assets/Scenes/Prototype 3.unity”
3. In the Hierarchy window, Select the “Player” GameObject
4. Observe the “Gravity Modifier” variable value in the attached Player Controller script component in the Inspector window
5. Enter Play Mode
6. On the Keyboard hit the Space key to jump and observe the character keeps moving up in the Game View
Expected result: The character jumps and returns to the ground
Actual result: The character keeps moving up in the Game View