docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FastAction<A, B>

    Alternative Action delegate with increased performance when adding or removing delegates.

    Inheritance
    object
    FastAction<A, B>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: TMPro
    Assembly: Unity.TextMeshPro.dll
    Syntax
    public class FastAction<A, B>
    Type Parameters
    Name Description
    A

    The first parameter of the method that this delegate encapsulates.

    B

    The second parameter of the method that this delegate encapsulates.

    Methods

    Add(Action<A, B>)

    Declaration
    public void Add(Action<A, B> rhs)
    Parameters
    Type Name Description
    Action<A, B> rhs

    Call(A, B)

    Declaration
    public void Call(A a, B b)
    Parameters
    Type Name Description
    A a
    B b

    Remove(Action<A, B>)

    Declaration
    public void Remove(Action<A, B> rhs)
    Parameters
    Type Name Description
    Action<A, B> rhs
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)