Documentation

Available libraries

Find the complete list of libraries and Software Development Kits you can import in Cloud Code scripts.
Read time 1 minuteLast updated a month ago

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. Promise based HTTP client, Axios version 1.6
    const axios = require("axios-1.6");
  2. A utility library, Lodash version 4
    const _ = require("lodash-4.17");
  3. const { DataApi } = require("@unity-services/cloud-save-1.4");
  4. const { ConfigurationApi, InventoryApi, CurrenciesApi } = require("@unity-services/economy-2.5");
  5. const { SettingsApi } = require("@unity-services/remote-config-1.1");
  6. const { TokenApi } = require("@unity-services/vivox-0.1");
  7. const { LobbyApi } = require("@unity-services/lobby-1.2");
  8. const { LeaderboardsApi } = require("@unity-services/leaderboards-2.0");
  9. const { TicketsApi, BackfillApi } = require("@unity-services/matchmaker-2.0");
  10. const { RelationshipsApi, PresenceApi, MessagingApi, NotificationsApi } = require("@unity-services/friends-1.0");
  11. const { PlayerAuthenticationApi } = require("@unity-services/player-auth-1.1");
  12. 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.