I’m attempting to get a file from my Amazon S3 bucket in C#, but Unity is telling me that the AmazonS3Client.GetObject function does not exist in any of its constructors. All the guides I’ve seen online are telling me that that is the function I want to use. Any help would be much appreciated.
Which version of the sdk are you using to access amazon?
Unity doesn’t have that built in, so you must have included that in your project in some manner. If you don’t have the version that contains the method in question, than the compiler is going to say it’s not available.
It looks like I’m using version 2. But the API says its on version 3.5, so that could very well be it. I’ll give that a look.
Edit: It would appear that that is the only SDK they have available for Unity. Yikes. I might just be out of luck here.
That method “GetObject” doesn’t seem to exist. Take a look at the docs here:
http://docs.aws.amazon.com/AWSUnitySDK/latest/APIReference/index.html
Amazon.S3 → AmazonS3Client
Oh I was definitely looking at the c# API instead of the Unity one. Thanks. I also found a project sample that I’ll post for all those out there searching for this issue.
Very interesting. I wasn’t aware that Amazon had a Unity specific API.
Here’s the AWS Mobile entry page:
Download links on the right-hand side.