mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-23 08:48:24 -05:00
17 lines
345 B
Markdown
17 lines
345 B
Markdown
# On Value Changed Attribute
|
|
|
|
Executes a method with the specified name when the value of the field changes.
|
|
|
|
```cs
|
|
[OnValueChanged("OnValueChanged")]
|
|
public int foo;
|
|
|
|
void OnValueChanged(int value)
|
|
{
|
|
Debug.Log(value);
|
|
}
|
|
```
|
|
|
|
| Parameter | Description |
|
|
| - | - |
|
|
| MethodName | The name of the method to be called when the value changes. | |