Class OnExitAttribute
Indicates that the target method should be called when the game exits.
Implements
Inherited Members
System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfoCount(System.UInt32)
System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
System.Attribute.System.Runtime.InteropServices._Attribute.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
System.Attribute.System.Runtime.InteropServices._Attribute.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
Namespace: IPA
Assembly: IPA.Loader.dll
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class OnExitAttribute : Attribute, _Attribute
Remarks
This attribute is interchangable with OnDisableAttribute, 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 SingleStartInit.
The method marked by this attribute will always be called from the Unity main thread.