Debugging
Scriptable Variable
Last updated
Scriptable Variable
Last updated
When you are in play mode, the objects (and their components) that have registered for the OnValueChanged Event of a Scriptable Variable become visible in the inspector.
As seen in the screenshot above, three objects are registered to this variable. Examining the first element that responds to this variable, we find the GameObject named 'HealthText' in the hierarchy, specifically its component 'BindTextMeshPro.'
By clicking, the object is pinged in the hierarchy. Double-clicking will select the object in the hierarchy. This visual debugging is useful for tracking what responds to the changes of your variable.
For more detailed explanation and examples of Scriptable Variables, please refer to the example scene '1_ScriptableVariables_Example_Scene' and its documentation.