class ChangeAttribute

in global :: Sandbox

This will invoke a method when the property changes. It can be used with any property but is especially useful when combined with [Sync] or [ConVar]. If no name is provided, we will try to call On[PropertyName]Changed. The callback should have 2 arguments - oldValue and newValue, both of the same type as the property itself.


public string Name { get; set; }

Name of the method to call on change. If no name is provided, we will try to call On[PropertyName]Changed.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public object TypeId { get; }

😔 No documentation found.

public bool Match( object obj )

😔 No documentation found.

public bool IsDefaultAttribute( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public ChangeAttribute( string name = null )

😔 No documentation found.