GenerateEventCallbackAttribute Class
Definition
Section titled “Definition”Mark a field or property to generate an event callback. The target must derive from ScriptableEvent or ScriptableEvent<T>.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)][ExcludeFromCodeCoverage]public sealed class GenerateEventCallbackAttribute : AttributeInheritance object → Attribute
Remarks
Section titled “Remarks”The containing type must be marked with GenerateScriptableCallbacksAttribute in order to generate any callbacks.
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; }