Is there a way to add more Textures to a UMaterialFactory?
I'm trying to expand the "Create New Material using this Texture" function in the editor. Instead of creating many materials it should create a single one containing all of the selected textures. It's already implemented using a single file:
UMaterialFactoryNew* Factory = NewObject();
Factory->InitialTexture = Object;
FContentBrowserModule& ContentBrowserModule = FModuleManager::LoadModuleChecked("ContentBrowser");
ContentBrowserModule.Get().CreateNewAsset(Name, FPackageName::GetLongPackagePath(PackagePath), UMaterial::StaticClass(), Factory);
The InitialTexture is always linked to the Base Color Input of the Main Material Node. I couldn't solve it yet but there has to be a way to add more texture files and link them to different inputs like metallic for example. I've already read several similar posts but I'm still lost. Thanks in advance!
asked Nov 24 '15 at 02:23 PM in C++ Programming
solved it ^_^
answered Nov 26 '15 at 02:26 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here