Book Image

Learning Unreal Engine iOS Game Development

By : Muhammad A.Moniem
Book Image

Learning Unreal Engine iOS Game Development

By: Muhammad A.Moniem

Overview of this book

Table of Contents (18 chapters)
Learning Unreal Engine iOS Game Development
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Nodes Database
Index

Adding in-app purchases


  • To make an IAP request in an Unreal Engine game, you will need to add a single node called Make An in-App Purchase, assign the current player controller to it, and pass Product Identifier as a string from the iTunes Connect account. Then, you can make different scenarios based on the result. For example, if the player purchases a pack of in-game currency, you can add the amount of the currency to the player's profile on success or you can display an error message on the UI on failure.

  • Also, you can return the IAP information from the output In App Purchase Information and then you can break down this information into more detail by using the Break InAppPurchaseProductInfo node, which can give you different strings that you can use to display some messages to the player.

  • With another node called Read in App Purchase Information, you can pass all the product identifiers as an array string, and it will return all the information related to them. You can then use this information...