docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddAsset

    AddAsset(LoadableObjectId)

    Adds a LoadableObjectId for an asset during build.

    Declaration
    public int AddAsset(LoadableObjectId loadableObjId)
    Parameters
    Type Name Description
    LoadableObjectId loadableObjId

    The LoadableObjectId for the asset.

    Returns
    Type Description
    int

    The integer index used to look up this asset at runtime.

    In This Article
    Back to top
    Copyright © 2026 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)