docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddSchema

    AddSchema(AddressableAssetGroupSchema, bool)

    Adds a copy of the provided schema object.

    Declaration
    public AddressableAssetGroupSchema AddSchema(AddressableAssetGroupSchema schema, bool postEvent = true)
    Parameters
    Type Name Description
    AddressableAssetGroupSchema schema

    The schema to add. A copy will be made and saved in a folder relative to the main Addressables settings asset.

    bool postEvent

    Determines if this method call will post an event to the internal addressables event system

    Returns
    Type Description
    AddressableAssetGroupSchema

    The created schema object.

    AddSchema(Type, bool)

    Creates and adds a schema of a given type to this group. The schema asset will be created in the GroupSchemas directory relative to the settings asset.

    Declaration
    public AddressableAssetGroupSchema AddSchema(Type type, bool postEvent = true)
    Parameters
    Type Name Description
    Type type

    The schema type. This type must not already be added.

    bool postEvent

    Determines if this method call will post an event to the internal addressables event system

    Returns
    Type Description
    AddressableAssetGroupSchema

    The created schema object.

    AddSchema<TSchema>(bool)

    Creates and adds a schema of a given type to this group.

    Declaration
    public TSchema AddSchema<TSchema>(bool postEvent = true) where TSchema : AddressableAssetGroupSchema
    Parameters
    Type Name Description
    bool postEvent

    Determines if this method call will post an event to the internal addressables event system

    Returns
    Type Description
    TSchema

    The created schema object.

    Type Parameters
    Name Description
    TSchema

    The schema type. This type must not already be added.

    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)