Cloud Storage: Aliyun OSS (optional)
Last updated
Last updated
Create an Alibaba Cloud Account and Activate the OSS Service.
Navigate to the OSS console and create a new storage bucket. Ensure the permissions for this bucket are set to 'Public Read/Write'.
Generate an AccessKey for OSS Access. Take note of the AccessKey ID and AccessKey Secret as these will be used to connect your SDK to the OSS service.
Steps to Create an Alibaba Cloud AccessKey:
Log in to the Alibaba Cloud console.
On the top-right corner of the console homepage, click on your profile picture. From the dropdown menu, select "AccessKey Management".
On the AccessKey management page, click the "Create AccessKey" button.
A dialog will pop up, allowing you to choose between "Regular AccessKey" and "Secure AccessKey". For most purposes, the "Regular AccessKey" should suffice.
Click the "Confirm" button, and your new AccessKey will be generated.
Upon successful creation, you'll be presented with your AccessKey ID and AccessKey Secret. It's crucial to note down these values as they'll be required to configure your SDK. For security reasons, the AccessKey Secret is only visible during its creation, so ensure you record it at this time.
Download and Import the Alibaba Cloud OSS .NET SDK. You can find the download link and import instructions for the SDK in Alibaba Cloud's official documentation.
For more detailed information, you might find the official Alibaba Cloud documentation on GitHub clearer and more concise. This tutorial adopts the following installation method.
Ensure that the generated Aliyun.OSS.dll
file is placed in Assets > Plugins
.
Here is the Aliyun SDK compiled by the author when writing the tutorial for developers to use.
Utilize the SDK's API in Your Unity Script. To upload and download files using the SDK, you'll need to provide your AccessKey ID, AccessKey Secret, Bucket name, and filename.