docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateSubsystem

    CreateSubsystem<TDescriptor, TSubsystem>(List<TDescriptor>, string)

    Creates a subsystem given a list of descriptors and a specific subsystem id.

    You should make sure to destroy any subsystem that you created so that resources acquired by your subsystems are correctly cleaned up and released. This is especially important if you create them during initialization, but initialization fails. If that happens, you should clean up any subsystems created up to that point.

    Declaration
    protected void CreateSubsystem<TDescriptor, TSubsystem>(List<TDescriptor> descriptors, string id) where TDescriptor : ISubsystemDescriptor where TSubsystem : ISubsystem
    Parameters
    Type Name Description
    List<TDescriptor> descriptors

    List of TDescriptor instances to use for subsystem matching.

    string id

    The identifier key of the particualr subsystem implementation being requested.

    Type Parameters
    Name Description
    TDescriptor

    The descriptor type being passed in.

    TSubsystem

    The subsystem type being requested

    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)