com.unity.meta-instant-games-sdk 1.0.0

com.unity.meta-instant-games-sdk

Source docs
Notes: processedReleased February 15, 2025

Browse versions

PreviousNext

Download Options

Direct package downloads captured from Unity's package registry.

Unity Compatibility

Minimum Unity: 6000.1 (0a6)

Package Dependencies

No dependency metadata provided.

Features

  • Documentation about [SDK initialization](xref:ig-sdk-initialization) and [SDK testing](xref:ig-sdk-testing).
  • Documentation about [Calling asynchronous methods](xref:ig-async-methods) and [WebTask/WebTask\](xref:ig-webtask).
  • `Result` property to retrieve result from [WebTask\](xref:ig-webtask)
  • Class `JsException` to represent JavaScript errors

API Changes

  • Removed top-level container class `Sdk`
  • Removed `JsNative` namespace

Improvements

  • Changed namespace `Runtime` to `Meta.InstantGames.Runtime`
  • Moved entities in `JsNative` namespace to `Meta.InstantGames.Runtime`
  • Made `Meta.InstantGames.FBInstant` a static class, allowing usage analogous to the JavaScript SDK, with no need to first instantiate an object.
  • Changed object initialization from JavaScript to use an empty object `{}` instead of `Object.create(null)`
  • Changed terms of service in `LICENSE.md`
  • Made property `Uuid` on SDK classes `internal`
  • Renamed class `JsNative` to `JsObject`
  • Class `APIError` derives from `JsException` and inherits its `Message` property from the base class
  • Moved JavaScript helper functions to new global object `JSRuntime`

Bug Fixes

  • Fixed return value of `FBInstant.Tournament.GetPayload` from JSON serializable object to nullable string
  • Fixed handling of `undefined` strings returned from JavaScript SDK endpoints