- edited description
Specifying multiple AssetList filters of the same type would be choice
It would be spectacular if I would specify multiple filters of the same type for AssetList, I want to include objects of different layers or tags within the same AssetList.
Edit:
From an interface standpoint, could do something as simple as using a character delimiter inside the filter string, like any of these examples:
- [AssetList(Tag = "One;Two;Three")]
- [AssetList(Tag = "One?Two?Three")]
- [AssetList(Tag = "One,Two,Three")]
While these characters could be in the actual Tag's name (or layer, prefix, etc.) they probably won't be.
Comments (4)
-
reporter -
reporter - edited description
-
Great suggestion!
Multiple tags should definitely be supported and will be before release. The Tag property will be renamed to Tags to make it clear that you can specify multiple tags.
Furthermore, we could include a CustomFilter property to support those cases where the built-in filters aren't enough.
[AssetList(CustomFilter="IncludeAsset", Tags="One,Two,Three")] public List<MyComponent> MyPrefabs private bool IncludeAsset(MyComponent obj) { return ... }
-
- changed status to resolved
We've implemented support for comma separated list of tags and layers, and also the option for using a custom filter method. These changes will be available with the next patch.
- Log in to comment