This is a paid asset, but now you can download it totally free. However, please keep in mind that this package is only provided for studying or testing the product prior to purchasing it, not for business functions.
Overview :
Help to make the game run on the Facebook Instant Game Platform, both Web and Messenger.
Highlights:
Version changes:
- Ver 1.2.1
- Add API
- void FBInstant.payments.onReady(System.Action cb)
- void FBInstant.payments.getCatalogAsync(System.Action<FBError, Product[]> cb)
- void FBInstant.payments.purchaseAsync(PurchaseConfig purchaseConfig, System.Action<FBError, Purchase> cb)
- void FBInstant.payments.getPurchasesAsync(System.Action<FBError, Purchase[]> cb)
- void FBInstant.payments.consumePurchaseAsync(string purchaseToken, System.Action<FBError> cb)
- bool FBInstant.payments.isSupportPayments()
- API Demo
- Update Document
Game dev workflow as :
- Prerequisite :
- Create App on Facebook
- Install Unity 2018.1.1
- Install WebGL addon
Common practice :
- Create new Unity Project
- Switch Platform to WebGL
- Import this asset
- Open DemoScene and add scene to Build Settings
- Click “Build” Button to build WebGL project, the output directory **MUST** named “web”
- Test the game on localhost
- Zip the “web” directory and upload the .zip to Facebook via web hosting tab
- Test the game on mobile device both Android & iOS and web platform
Knowing Issue:
- Require include font file to display other languages expect English
- Build time is a little longer