Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Load entire group?

Discussion in 'Addressables' started by Martin_Gonzalez, Jul 5, 2019.

  1. Martin_Gonzalez

    Martin_Gonzalez

    Joined:
    Mar 25, 2012
    Posts:
    361
    Hi, I'm just playing with addresables and I was wondering if I can load an entire group and get the List of the items inside of it.

    Example:

    MyScriptablesGroup
    -> Scriptable1.asset
    -> Scriptable2.asset
    -> Scriptable3.asset

    Addressables.LoadAssetAsync<List<Scriptable>>("MyScriptableGroup").Completed += OnCompleted;
     
  2. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464
  3. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    Have I not replied? ok. for now the solution is exactly what you said: apply a label, or use the rule based importer. In the future, we are looking at making it easier to add schemas to groups that could do this kind of thing. Related, multi-group editing is on the list too.
     
    Favo-Yang likes this.