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. |