Download

all material change some setting

how select all material and chance setting?

i use vxgi. material supesampling tick is click is ok.
but one by one evey material to hard.

You can write some c++ script to loop all materials and then set any settings that you want.



auto ObjectLibrary = UObjectLibrary::CreateLibrary(UMaterialInstance::StaticClass(), false, false);
 ObjectLibrary->LoadAssetDataFromPath(TEXT("/Game/Materials"));
TArray<FAssetData> AssetDatas;
ObjectLibrary->GetAssetDataList(AssetDatas);

for (int32 i = 0; i < AssetDatas.Num(); ++i)
{
UObject* object = AssetDatas*.GetAsset();
                UMaterialInstance* m = Cast<UMaterialInstance>(object);
                if (m == nullptr)
                    continue;

   m->TwoSided = 1;// set anything that you want.

   m->UpdateResource();
   m->MarkPackageDirty();
}


i cant understand. my c+ knowledge is zero.
how do it?

Then you are out of luck.

damn my luck