Skip to content

unityInstance is not defined #1

@johnedvard

Description

@johnedvard

Hello, and thank you for the asset.
I am having some issues trying to use it in Unity 2020.1.11f1
After exporting to WebGL, I get the following error when Monetization start. I am not sure what causes this, and was hoping for some help on the matter.

Invoking error handler due to
ReferenceError: unityInstance is not defined
    at sendMessageToWebMonetizationBroadcaster (http://localhost:60126/Build/DemoWebMonetization4.framework.js:2:42955)
    at HTMLDivElement.<anonymous> (http://localhost:60126/Build/DemoWebMonetization4.framework.js:2:43117)
    at <anonymous>:6:33
DemoWebMonetization4.framework.js:2 Uncaught ReferenceError: unityInstance is not defined
    at sendMessageToWebMonetizationBroadcaster (DemoWebMonetization4.framework.js:2)
    at HTMLDivElement.<anonymous> (DemoWebMonetization4.framework.js:2)
    at <anonymous>:6:33

Screenshot 2020-11-01 at 22 18 01

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions