Unity
Learn how to configure Unity for use with Filebase.
Last updated
Was this helpful?
Learn how to configure Unity for use with Filebase.
Last updated
Was this helpful?
Unity is a popular game design and development engine that can be used to create a variety of 2D and 3D games. The AWS SDK for .NET can be used for Unity to interact with Filebase.
Read below to learn how to use Unity with Filebase.
Special thanks to Eric Vander Wal from Nervos Network for putting together the GitHub repo of scripts for this SDK creating a video tutorial showcasing this tutorial, which can be viewed here.
Sign in with your Unity account, then select ‘Projects’. Select ‘New Project’ to create a new project, or select an existing project you’d like to use.
git clone https://github.com/ericvanderwal/UnityFilebaseSDK.git
Navigate to the Assets directory, then click and drag the FilebaseSDK folder into the Unity project’s Assets folder.
Inside, you will find a Script
and a Sample
folder. Scripts
contains the necessary functionality scripts that are used to interact with Filebase, and Samples
contains sample Unity projects and scripts that can be used.
public const string AccessKey = "FILEBASE_ACCESS_KEY";
public const string SecretKey = "FILEBASE_SECRET_KEY";
Then select the ‘Console’ tab to view the console output, and select the ‘Play’ button from the top center of the screen to run your script.
Enter your Filebase bucket name and the object name you want to download.
Enter your Filebase bucket name and a project file to upload. This example uses the file located at Assets/Scenes/SampleScene.unity
.
This button takes a screenshot of your current workspace and creates an image file of it.
Each of these scripts can be repurposed to upload and download different game assets to Filebase.