# Is it possible to filter selectable assets for UPROPERTY?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-filter-selectable-assets-for-uproperty/450180>\
**Category:** UI\
**Tags:** content-browser, unreal-engine, search, UI, question, CPP\
**Created:** [June 5, 2019, 9:44am UTC](https://forums.unrealengine.com/t/is-it-possible-to-filter-selectable-assets-for-uproperty/450180 "2019-06-05T09:44:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pDunkl](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pdunkl/32/1194600_2.png) [@pDunkl](https://forums.unrealengine.com/u/pDunkl)\
**Post date:** [June 5, 2019, 9:44am UTC](https://forums.unrealengine.com/t/is-it-possible-to-filter-selectable-assets-for-uproperty/450180/1 "2019-06-05T09:44:35Z")

</div>

Hi guys,  
does anybody know if/how that can be done?

For example if you type in the editors content search bar “materialdomain == ui” it shows only the ui materials.  
I have a UMaterialInterface\* variable, that should ever only accept ui materials and therefore the asset picker should also only show materials with this domain, without the need to manually write the same search expression everytime into the search bar.

thanks in advance

 ![278917-anmerkung-2019-06-05-113825.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/5/a/a5acce4acadccfb3025800bd1646946c037b3e26.png)

---

<div class="post-metadata">

**Author:** ![mxnko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mxnko](https://forums.unrealengine.com/u/mxnko)\
**Post date:** [October 16, 2020, 1:51am UTC](https://forums.unrealengine.com/t/is-it-possible-to-filter-selectable-assets-for-uproperty/450180/2 "2020-10-16T01:51:43Z")

</div>

Did you ever figure this out? I also need to filter that list by an arbitrary predicate.

---

<div class="post-metadata">

**Author:** ![Ji\_Rath](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ji_rath/32/973057_2.png) [@Ji\_Rath](https://forums.unrealengine.com/u/Ji_Rath)\
**Post date:** [February 23, 2021, 8:58pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-filter-selectable-assets-for-uproperty/450180/3 "2021-02-23T20:58:50Z")

</div>

Have you tried using the Metadata specifier AllowedClasses? For example,

```
UPROPERTY(EditAnywhere, meta = (AllowedClasses = "MaterialInterface"))

```

More info can be found in the [Unreal Docs](https://docs.unrealengine.com/en-US/ProgrammingAndScripting/GameplayArchitecture/Metadata/index.html)
