GenerateValueCallbackAttribute Class
Definition
Section titled “Definition”Mark a field or property to generate a value change callback. The target must derive from ScriptableValue<T>.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = true)][ExcludeFromCodeCoverage]public sealed class GenerateValueCallbackAttribute : AttributeInheritance object → Attribute
Remarks
Section titled “Remarks”The containing type must be marked with GenerateScriptableCallbacksAttribute in order to generate any callbacks.
Constructors
Section titled “Constructors”GenerateValueCallbackAttribute()
Section titled “GenerateValueCallbackAttribute()”Constructs a new GenerateValueCallbackAttribute with the default Changed.
public GenerateValueCallbackAttribute()GenerateValueCallbackAttribute(ValueCallbackType)
Section titled “GenerateValueCallbackAttribute(ValueCallbackType)”Constructs a new GenerateValueCallbackAttribute with the specified ValueCallbackType.
public GenerateValueCallbackAttribute(ValueCallbackType type)Parameters
Section titled “Parameters”type ValueCallbackType
Sets how the callback will be generated.
Properties
Section titled “Properties”CallbackName
Section titled “CallbackName”Can be used to set a custom name for the generated callback method. If not set, the default naming convention will be used.
public string CallbackName { get; set; }