Sandbox Logo

class ChangeAttribute : System.Attribute

Summary

Combined with [ConVar] this will invoke a method when the property changes.<br /> If no name is provided, we will try to call On[PropertyName]Changed.<br /> The callback should have 2 arguments - oldValue and newValue, both of the same type as the property itself.

User Comments