Create a Custom PhysicalMaterial

Chip_Burwell
Thu, 19 Nov 2020 00:26:15 +0000
World Creation

I’d like to create a custom PhysicalMaterial class that would have additional properties that level designers could edit from the editor. Then in NotifyHit I can grab the parameters from the custom PhysicalMaterial and use them to modify my collision.

I can easily create a C++ class derived from UPhysicalMaterial and add properties. But in the editor I have only managed to create a blueprint class based off my derived class. Unfortunately, the blueprint class can’t be assigned as a PhysicalMaterial. Is there any way to create a derived PhysicalMaterial in the editor and assign it as the PhysicalMaterial to a mesh?

1 post - 1 participant