Available libraries

The following is a full list of libraries you can import in a Cloud Code script. These provide access to the UGS Client SDKs for each service or utility that you can use for Cloud Code scripts.

To find a full list of available Cloud Code Services JavaScript SDKs, refer to the Cloud Code Services SDKs documentation.

Note: Cloud Code can also call out to public internet APIS. For more information, refer to the documentation on how to integrate with external services.

Note: If the UGS service you want to use isn't listed here, you can still call it using API calls. For more information, refer to the documentation on how to Connect with UGS through REST API.

  1. A utility library, Lodash version 4

    const _ = require("lodash-4.17");
  2. Cloud Save API client

    const { DataApi } = require("@unity-services/cloud-save-1.4");
  3. Economy API client

    const { ConfigurationApi, InventoryApi, CurrenciesApi } = require("@unity-services/economy-2.4");
  4. Remote Config API client

    const { SettingsApi } = require("@unity-services/remote-config-1.1");
  5. Vivox library

    const { TokenApi } = require("@unity-services/vivox-0.1");
  6. Lobby API client

    const { LobbyApi } = require("@unity-services/lobby-1.2");
  7. Leaderboards API client

    const { LeaderboardsApi } = require("@unity-services/leaderboards-1.1");
  8. Matchmaker API client

    const { TicketsApi, BackfillApi } = require("@unity-services/matchmaker-2.0");
  9. Friends API client

    const { RelationshipsApi, PresenceApi, MessagingApi, NotificationsApi } = require("@unity-services/friends-1.0");
  10. Multiplay API client

    const { AllocationsApi, FleetsApi } = require("@unity-services/multiplay-1.0");
  11. Player Authentication API client

    const { PlayerAuthenticationApi } = require("@unity-services/player-auth-1.0");
  12. Player Names API client

    const { PlayerNamesApi } = require("@unity-services/player-names-1.0");

To learn how to integrate Cloud Code with other Unity services, refer to the Integrate with other Unity services page.