docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddAssetToTable

    AddAssetToTable(LocaleIdentifier, TableEntryReference, Object, bool)

    Add a localized asset to the asset table that matches the LocaleIdentifier. This function ensures the localization system adds the asset to the Addressables system and sets the asset up for use.

    Declaration
    public void AddAssetToTable(LocaleIdentifier localeIdentifier, TableEntryReference entryReference, Object asset, bool createUndo = false)
    Parameters
    Type Name Description
    LocaleIdentifier localeIdentifier

    The table to add the asset to, if a table with the id does not exist a new one will be created.

    TableEntryReference entryReference

    The table entry Key or Key Id.

    Object asset

    The asset to add.

    bool createUndo

    Should an undo operation be created?

    AddAssetToTable(AssetTable, TableEntryReference, Object, bool)

    Add a localized asset to the asset table. This function will ensure the localization system adds the asset to the Addressables system and sets the asset up for use.

    Declaration
    public virtual void AddAssetToTable(AssetTable table, TableEntryReference entryReference, Object asset, bool createUndo = false)
    Parameters
    Type Name Description
    AssetTable table

    The table to add the asset to, must be part of the collection.

    TableEntryReference entryReference

    The table entry Key or Key Id.

    Object asset

    The asset to add.

    bool createUndo

    Should an undo operation be created?

    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)