Hi, I want to offer my users to pick a material from a dropdown list OR let them assign a material from the content browser. To both requirements I cannot find any solution (Neither to finding all materials in my project or just in one folder nor to display a material field in my plugin).
Simply creating a property on a struct/class will allow the user to select the assets available in your project. For materials, use MaterialInterface, not Material.
In c++, you’ll need to make it a UPROPERTY with the ‘EditAnywhere’ flag.
Hi TTaM, thanks for your answer. Unfortunately I cannot use UPROPERTY in a plugin tab in Slate. For an actor sure, I’d simple chose a UPROPERTY to edit a material.
push, any ideas? I don’t care if I show the materials just by names in a drop down or in an image in my slate widget. My problem is that I do not know how to determine all materials from the project in a widget. There must be some easy to use kind of function for that case, right?