docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetAutoGenerateImage

    SetAutoGenerateImage(bool)

    Sets whether the image used for the promotion should be auto generated or use an asset from the transaction's Asset Detail.

    Declaration
    public void SetAutoGenerateImage(bool autoGenerateImage)
    Parameters
    Type Name Description
    bool autoGenerateImage

    If true it will auto generate the promotion image, ignoring the Promotion Image Sprite Name field (promoImageSpriteName). Field is true by default. If false, it will use the key specified in Promotion Image Sprite Name (promoImageSpriteName) to get the image from the transaction's Asset Detail.

    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)