![]() |
LootLocker Unity SDK 8.0.0
Game backend SDK for Unity
|
CDN-backed file storage scoped to a player's profile.
Best suited for large files such as screenshots, cloud saves, or profile pictures that benefit from CDN delivery. For small key-value data prefer Metadata. Each file upload requires a declared purpose; files can be marked private to restrict visibility. Up to five revisions per file are retained, with revert capability in the Web Console.
See the LootLocker documentation.
|
inlinestatic |
The file will be deleted immediately and the action can not be reversed.
You will get the ID of files when you upload a file, or with GetAllPlayerFiles().
| fileId | Id of the file. You can get the ID of files when you upload a file, or with GetAllPlayerFiles() |
| onComplete | onComplete Action for handling the response of type LootLockerResponse |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Returns all the files that your currently active player own.
| onComplete | onComplete Action for handling the response of type LootLockerPlayerFilesResponse |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Returns all public files that the player with the provided playerID owns.
| playerId | The ID of the player whose public files to retrieve |
| onComplete | onComplete Action for handling the response of type LootLockerPlayerFilesResponse |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Returns a URL where you can access the file.
You can get the ID of files when you upload them, or call the list endpoint.
| fileId | Id of the file, can be retrieved with GetAllPlayerFiles() or when the file is uploaded |
| onComplete | onComplete Action for handling the response of type LootLockerPlayerFile |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Update an existing player file with a new file using a byte array.
Can be useful if you want to upload without storing anything on disk.
| fileId | Id of the file. You can get the ID of files when you upload a file, or with GetAllPlayerFiles() |
| fileBytes | Byte array to upload |
| onComplete | onComplete Action for handling the response of type LootLockerPlayerFile |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Update an existing player file with a new file using a Filestream.
Can be useful if you want to upload without storing anything on disk.
| fileId | Id of the file. You can get the ID of files when you upload a file, or with GetAllPlayerFiles() |
| fileStream | Filestream to upload |
| onComplete | onComplete Action for handling the response of type LootLockerPlayerFile |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Update an existing player file with a new file.
| fileId | Id of the file. You can get the ID of files when you upload a file, or with GetAllPlayerFiles() |
| pathToFile | Path to the file, example: Application.persistentDataPath + "/" + fileName; |
| onComplete | onComplete Action for handling the response of type LootLockerPlayerFile |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Upload a file using a byte array.
Can be useful if you want to upload without storing anything on disk. The file will be owned by the currently active player.
| fileBytes | Byte array to upload |
| fileName | Name of the file on LootLocker |
| filePurpose | Purpose of the file, example: savefile/config |
| onComplete | onComplete Action for handling the response of type LootLockerPlayerFile |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Upload a file using a byte array.
Can be useful if you want to upload without storing anything on disk. The file will be owned by the currently active player.
| fileBytes | Byte array to upload |
| fileName | Name of the file on LootLocker |
| filePurpose | Purpose of the file, example: savefile/config |
| isPublic | Should this file be viewable by other players? |
| onComplete | onComplete Action for handling the response of type LootLockerPlayerFile |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Upload a file using a Filestream.
The file will be owned by the currently active player.
| fileStream | Filestream to upload |
| filePurpose | Purpose of the file, example: savefile/config |
| onComplete | onComplete Action for handling the response of type LootLockerPlayerFile |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Upload a file using a Filestream.
The file will be owned by the currently active player.
| fileStream | Filestream to upload |
| filePurpose | Purpose of the file, example: savefile/config |
| isPublic | Should this file be viewable by other players? |
| onComplete | onComplete Action for handling the response of type LootLockerPlayerFile |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Upload a file with the provided name and content.
The file will be owned by the player with the provided playerID. It will not be viewable by other players.
| pathToFile | Path to the file, example: Application.persistentDataPath + "/" + fileName; |
| filePurpose | Purpose of the file, example: savefile/config |
| onComplete | onComplete Action for handling the response of type LootLockerPlayerFile |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
|
inlinestatic |
Upload a file with the provided name and content.
The file will be owned by the currently active player.
| pathToFile | Path to the file, example: Application.persistentDataPath + "/" + fileName; |
| filePurpose | Purpose of the file, example: savefile/config |
| isPublic | Should this file be viewable by other players? |
| onComplete | onComplete Action for handling the response of type LootLockerPlayerFile |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
Functions | |
| static void | LootLocker.Requests.LootLockerSDKManager.GetPlayerFile (int fileId, Action< LootLockerPlayerFile > onComplete, string forPlayerWithUlid=null) |
| Returns a URL where you can access the file. | |
| static void | LootLocker.Requests.LootLockerSDKManager.GetAllPlayerFiles (Action< LootLockerPlayerFilesResponse > onComplete, string forPlayerWithUlid=null) |
| Returns all the files that your currently active player own. | |
| static void | LootLocker.Requests.LootLockerSDKManager.GetAllPlayerFiles (int playerId, Action< LootLockerPlayerFilesResponse > onComplete, string forPlayerWithUlid=null) |
| Returns all public files that the player with the provided playerID owns. | |
| static void | LootLocker.Requests.LootLockerSDKManager.UploadPlayerFile (string pathToFile, string filePurpose, bool isPublic, Action< LootLockerPlayerFile > onComplete, string forPlayerWithUlid=null) |
| Upload a file with the provided name and content. | |
| static void | LootLocker.Requests.LootLockerSDKManager.UploadPlayerFile (string pathToFile, string filePurpose, Action< LootLockerPlayerFile > onComplete, string forPlayerWithUlid=null) |
| Upload a file with the provided name and content. | |
| static void | LootLocker.Requests.LootLockerSDKManager.UploadPlayerFile (FileStream fileStream, string filePurpose, bool isPublic, Action< LootLockerPlayerFile > onComplete, string forPlayerWithUlid=null) |
| Upload a file using a Filestream. | |
| static void | LootLocker.Requests.LootLockerSDKManager.UploadPlayerFile (FileStream fileStream, string filePurpose, Action< LootLockerPlayerFile > onComplete, string forPlayerWithUlid=null) |
| Upload a file using a Filestream. | |
| static void | LootLocker.Requests.LootLockerSDKManager.UploadPlayerFile (byte[] fileBytes, string fileName, string filePurpose, bool isPublic, Action< LootLockerPlayerFile > onComplete, string forPlayerWithUlid=null) |
| Upload a file using a byte array. | |
| static void | LootLocker.Requests.LootLockerSDKManager.UploadPlayerFile (byte[] fileBytes, string fileName, string filePurpose, Action< LootLockerPlayerFile > onComplete, string forPlayerWithUlid=null) |
| Upload a file using a byte array. | |
| static void | LootLocker.Requests.LootLockerSDKManager.UpdatePlayerFile (int fileId, string pathToFile, Action< LootLockerPlayerFile > onComplete, string forPlayerWithUlid=null) |
| Update an existing player file with a new file. | |
| static void | LootLocker.Requests.LootLockerSDKManager.UpdatePlayerFile (int fileId, FileStream fileStream, Action< LootLockerPlayerFile > onComplete, string forPlayerWithUlid=null) |
| Update an existing player file with a new file using a Filestream. | |
| static void | LootLocker.Requests.LootLockerSDKManager.UpdatePlayerFile (int fileId, byte[] fileBytes, Action< LootLockerPlayerFile > onComplete, string forPlayerWithUlid=null) |
| Update an existing player file with a new file using a byte array. | |
| static void | LootLocker.Requests.LootLockerSDKManager.DeletePlayerFile (int fileId, Action< LootLockerResponse > onComplete, string forPlayerWithUlid=null) |
| The file will be deleted immediately and the action can not be reversed. | |