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.
A utility library, Lodash version 4
const _ = require("lodash-4.17");
const { DataApi } = require("@unity-services/cloud-save-1.4");
const { ConfigurationApi, InventoryApi, CurrenciesApi } = require("@unity-services/economy-2.4");
const { SettingsApi } = require("@unity-services/remote-config-1.1");
const { TokenApi } = require("@unity-services/vivox-0.1");
const { LobbyApi } = require("@unity-services/lobby-1.2");
const { LeaderboardsApi } = require("@unity-services/leaderboards-1.1");
const { TicketsApi, BackfillApi } = require("@unity-services/matchmaker-2.0");
const { RelationshipsApi, PresenceApi, MessagingApi, NotificationsApi } = require("@unity-services/friends-1.0");
const { AllocationsApi, FleetsApi } = require("@unity-services/multiplay-1.0");
Player Authentication API client
const { PlayerAuthenticationApi } = require("@unity-services/player-auth-1.0");
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.