docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor OutputItem

    OutputItem(string, int, string)

    Standard constructor for an output item, takes an id, quantity, and optional destination inventory.

    Declaration
    public OutputItem(string id, int quantity, string destinationInventoryId = null)
    Parameters
    Type Name Description
    string id

    The id of the item this gives.

    int quantity

    The quantity of the item to give.

    string destinationInventoryId

    The override inventory to try and put the item into.

    OutputItem(OutputItem)

    Constructor for creating a clone with the same information as another OutputItem.

    Declaration
    public OutputItem(OutputItem other)
    Parameters
    Type Name Description
    OutputItem other

    The other output item to copy information from.

    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)