Search Results for

    Show / Hide Table of Contents

    Class OnExitAttribute

    Indicates that the target method should be called when the game exits.

    Inheritance
    Object
    OnExitAttribute
    Namespace: IPA
    Assembly: IPA.Loader.dll
    Syntax
    public sealed class OnExitAttribute : 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.

    Extension Methods

    ReflectionUtil.SetField<T, U>(T, String, U)
    ReflectionUtil.GetField<U, T>(T, String)
    ReflectionUtil.SetProperty<T, U>(T, String, U)
    ReflectionUtil.GetProperty<U, T>(T, String)
    ReflectionUtil.InvokeMethod<U, T>(T, String, Object[])

    See Also

    PluginAttribute
    OnDisableAttribute
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX