Search Unity

  1. We would like to hear your feedback about Unity and our products. Click here for more information.
    Dismiss Notice

Codeless IAP OnInitialized

Discussion in 'Unity IAP' started by Livealot, Jun 12, 2019.

  1. Livealot


    Sep 2, 2013
    I'm hoping to connect the dots between the IAPDemo approach of creating an IStoreListener and the Codeless IAP approach. Both have an OnInitialized that gets called when everything is ready.

    I'm using the Automatically Initialize checkbox in the IAP catalog but I'm having trouble listening for OnInitialized. It is triggered in the default CodelessIAPStoreListener but not in my custom IStoreListener.

    Is there a way to listen to the listener so I can piggyback on the default trigger?

    There's an old thread that talks about some bools that I could ping, but I'd prefer to listen for the trigger from my custom script.

    I don't want to change CodelessIAPStoreListener.cs since that will be overwritten with every update, but it would be nice if that script fired events that we could listen for in our custom scripts

    [Solved] Codeless IAP and store initialization - Unity Forum
    Last edited: Jun 12, 2019
  2. JeffDUnity3D


    Unity Technologies

    May 2, 2017