Class OnDisableAttribute
Indicates that the target method should be called when the plugin is disabled.
Implements
Inherited Members
Namespace: IPA
Assembly: IPA.Loader.dll
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class OnDisableAttribute : Attribute, _Attribute, IEdgeLifecycleAttribute
Remarks
This attribute is interchangable with OnExitAttribute, and is treated identically. They are seperate to allow plugin code to more clearly describe the intent of the methods.
Typically, this will be used when the RuntimeOptions parameter of the plugins's PluginAttribute is DynamicInit.
The method marked by this attribute will always be called from the Unity main thread.