docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ForEachAssembly

    ForEachAssembly(Action<Assembly>)

    Executes a delegate function for every assembly that can be loaded.

    Declaration
    public static void ForEachAssembly(Action<Assembly> callback)
    Parameters
    Type Name Description
    Action<Assembly> callback

    The callback method to execute for each assembly.

    Remarks

    ForEachAssembly iterates through all assemblies and executes a method on each one. If an ReflectionTypeLoadException is thrown, it is caught and ignored.

    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)