Search Unity

Question download addressables from parse server

Discussion in 'Addressables' started by elfasito, Jun 15, 2021.

  1. elfasito

    elfasito

    Joined:
    Jul 4, 2017
    Posts:
    51
    Hello, Im struggling trying to get the addressables from parse server database (back4app).
    Im thinking what the problem is how the database manage the url address in combination with filename of the files uploaded.
    What I made in database:
    1-I created a new class called: "StorageAddressables" in dabatase.
    2-I added a new column called: "Addressables" to this classs, and set the data as "File".
    3-add a new row with the file attached in "Addressables" column.

    If I send a query to the database class get this:
    "objectId": "M0pZgY4FKR",
    "Addressables": {
    "__type": "File",
    "name": "XXXXXX2ffa83db6693a383f251783_remoteaddressables_scenes_addressable-test.unity.bundle",
    "url": "https://parsefiles.back4app.com/XXXXXXHhPBpDafIWJFIvOynvPNrf7JzcFq39ac/XXXXXXffa83db6693a383f251783_remoteaddressables_scenes_addressable-test.unity.bundle"
    },

    in addressables configuration Im configuring the remote load path as: https://parsefiles.back4app.com/XXXXXXHhPBpDafIWJFIvOynvPNrf7JzcFq39ac/
    *Im not sure if this Is a permanent link to my database.

    other problem I see is what the database add a extra part to the filename to get it from url:
    XXXXXX2ffa83db6693a383f251783_remoteaddressables_scenes_addressable-test.unity.bundle.
    the name what addressables find is: remoteaddressables_scenes_addressable-test.unity.bundle

    Can someone guide me a little?, im pretty novice programming.
    I used google cloud and firebase storage before with addressables without problems.
    but the parse server database is pretty different (what I can understand)