Hi, I would like to use UGC in a different setting, the generated content (images) should be available public per url link.
Is there a function to get the public url of a content item? In the dashboard it is possible to download the content, which works and has a very long url (https://storage.googleapis.com/ugc-prd/projects/…), the downloaded file comes without any file extension, but after adding the file extension (f.e. *.png) the file can be opened. I think the data is stored as a byte array and not in its original form.
I would like to get a public direct url to the content and transform this into a qr code, so everyone could scan the code and open it on any device? Is it possible? Are there any methods or workarounds to get the correct public link and also store the content in its original file format?
Thanks!
2 Likes
Did you find a solution to this? I have the same question.
Unfortunately not yet. I think it’s more complicated than you might think at first, maybe it can be done with cloud code. If anyone has any experience, any tips are welcome.
Hey Martin, you are correct, UGC content is stored as simple bytes. It’s up to the client (whatever the client is, it can be many things) to interpret the bytes into whatever resource the client knows.
If I understand your case correctly, you would need a simple web server that acts as a point of entry, redirects to the UGC resource URL, transforms it in the correct format and returns it to the user.
Doing this would also allow you to improve the URL so it’s cleaner and easier to understand.
Thanks @anthonylord.
Yes, you have understood it correctly. I was looking for a serverless solution and had hoped to use Unity Cloud Code to fill the gaps, but I don’t think this limit can be overcome.
But I found another solution, with Unity Cloud Content Delivery it works perfectly, without the advantages of UGC but files are stored in file format and are available via url link.
1 Like
Thank you for letting me know, I also want to know it.