docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetAutoGeneratePromotionImage

    SetAutoGeneratePromotionImage(string, string, string)

    Set the image used for the promotion should be auto generated.

    Declaration
    public void SetAutoGeneratePromotionImage(string itemIconSpriteName, string itemCountPrefix = "x", string currencyCountPrefix = "x")
    Parameters
    Type Name Description
    string itemIconSpriteName

    The sprite asset name for the icon of the inventory or currency items listed in the transaction's Rewards, as specified in their Asset details.

    string itemCountPrefix

    The string to prefix the reward inventory item counts when auto generating the promotion image.

    string currencyCountPrefix

    The string to prefix the reward currency counts when auto generating the promotion image.

    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)