Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Bucket Subfolders? How to random select through a large list of content?

Discussion in 'Unity Cloud Content Delivery' started by darashayda, Sep 27, 2021.

  1. darashayda

    darashayda

    Joined:
    Jun 27, 2020
    Posts:
    443
    Tim had mentioned something about folders or sub-folders and I like to learn more about them.

    Example: We have an Anime character as you saw in our demos.

    We like to re-dress her, change the weapons and even the mocap animations. Either the player requests new content or the game controller ransom select.

    We know how to do that in previous Unity settings, we need to learn and understand how to do that in CCN Bucket scheme.

    Simple snippet of lines of code or some sample project would do.

    We do not want awefully complicated schemes, the simplest for the starter.

    Dara
     
  2. llunity3d

    llunity3d

    Unity Technologies

    Joined:
    Aug 23, 2021
    Posts:
    24
    Hi Dara,
    Thanks for your interest in CCD!
    Unfortunately we are unable to provide you with a definitive solution since it is not specific to CCD. It is more a of an open suggestion. You could use a subfolder, then in your code randomly select a file:
    models/model1.model
    models/model2.model
    models/model3.model
    I hope this helps, thanks you again for you feedback!
     
  3. darashayda

    darashayda

    Joined:
    Jun 27, 2020
    Posts:
    443
    This is not my suggestion this was Tim at CCD team suggestion:

    https://forum.unity.com/threads/ver...-to-organize-in-buckets.1173194/#post-7514684

    models/model1.model
    models/model2.model
    models/model3.model

    This has some issues:

    1. We use third party non-Unity software to generate huge assets e.g. medical assets

    2. We do store them as you had mentioned in some directory form, but they are on our linux servers not inside Unity Project. These assets are in many TB sizes and impractical for Unity Editor.

    3. There is an external upload option for CCD,we used it and it works, but we are not sure ;

    A. How to make directories, since it dumps files into /

    B. Is that copying into the external backend the right way for these directories.

    If we understand how to do A-B , we can then variate the huge assets without your assistance .

    Regards

    Dara
     
  4. llunity3d

    llunity3d

    Unity Technologies

    Joined:
    Aug 23, 2021
    Posts:
    24
    Hi @darashayda ,

    For A. there is two options for grouping files.

    1. When creating an entry you can specify a path, lets say
    /modes/ 
    , that would allow you to dump files in different directories in your bucket, allowing you to group things like you want.

    2. You could also use labels when creating an entry and get entries by those label, that would also allow you to group files like you want.

    For B. no need to worry about the backend, that is handle by our side!

    Thanks again for using CCD,

    Regards