Kizspy | Question: 39
(Choose 1 answer)
What does [SerializeField] do?
public class Player: MonoBehaviour {
}
[SerializeField] private int health = 100;
A. Exposes the variable globally across all scripts in the project
B. Restricts modifications to the variable during runtime execution
C. Enables editing of the private variable through the Inspector interface
D. Removes the variable from the component's serialized data