Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 768 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 768 Bytes

bevy_ios_iap_egui

This helper crate is for interacting with the ios iap api from within your bevy app. It is using egui for the ui.

demo

Demo from our game using this crate: zoolitaire.com

Usage

for now the crate is not published on crates, so it has to be used as a git dependency:

bevy_ios_iap_egui = { git = "https://github.com/rustunit/bevy_ios_iap.git" }

add this to your code:

// initialize the plugin with the product ids your app uses.
app.add_plugins(IosIapEguiPlugin {
    products_ids: vec!["com.yourapp.product1".into()],
});

// in your system you can toggle the ui with the following command:
commands.trigger(IosIapEguiOpen::Toggle);