docs.unity.cn
    Show / Hide Table of Contents

    Method GetAllSystems

    GetAllSystems(WorldSystemFilterFlags, Boolean)

    Calculates a list of all systems filtered with WorldSystemFilterFlags, [DisableAutoCreation] etc. Prefer GetAllSystemTypeIndices where possible to avoid extra reflection.

    Declaration
    public static IReadOnlyList<Type> GetAllSystems(WorldSystemFilterFlags filterFlags, bool requireExecuteInEditor = false)
    Parameters
    Type Name Description
    WorldSystemFilterFlags filterFlags

    The filter flags to search for.

    Boolean requireExecuteInEditor

    Optionally require that [WorldSystemFilter(WorldSystemFilterFlags.Editor)] is present on the system. This is used when creating edit mode worlds.

    Returns
    Type Description
    IReadOnlyList<Type>

    The list of filtered systems

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023