hey guys, need some help…
I imported this fbx into my project. For some reason all the material shows black. When open a material, click disable ‘cast ray traced shadows’ hit apply, and then reenable the option and apply, the material gets fixed automatically.
Is there any way I can automate this process or another fix? I have about 2220 materials in my fbx
Hi @Dvspriest
Hope this can help you!
@BRS_GerDAngelo answer sounded good until I noticed I could not find the property matrix button in the menu for materials. Not sure why.
@Dvspriest
Alternatively you can make an editor utility widget to parse all your material assets and set the editor property “bCastRayTracedShadows” at false.
You could also do it the “Interchange” way if you are on 5.5
-
Create a Interchange Editor Blueprint Pipeline
-
Overwrite the Execute Post Factory Pipeline function
-
Create and expose a variable for your custom pipeline
-
Set the new value for your Cast Ray Traced Shadows on your material
-
In the Project settings>Interchange>Assets, add your Custom pipeline.
Now when you import and FBX you have a custom option to force or not the CastRayTracedShadows.
I attached the Interchange Pipeline Editor Blueprint I made in 5.5.1 for reference
IBP_CustomMaterialOptions.uasset (30.8 KB)
Hey Flavien, I’m on UE5.4
Trying to figure out how to make a Utility widget. Been watching some videos, however its going a bit over my head on how to parse all my material assets and set the editor property “bCastRayTracedShadows” at false
I’m also looking to disable the roughness toggle