New Custom Asset

Hey guys,

So I extended PhysicalMaterial to add more variables, such as the ones from UDK like SlideSound, ImpactEffect, and others. The problem I’m having is I can’t seem to find a way to create new physical material assets that extend from MyPhysicalMaterial, in the content browser. I’m know in UDK you’d use ActorFactories and I found some in the source code within UnrealEd, but I can’t seem to figure it out at all. I’m hoping maybe there’s an easier way I’m missing or a direction someone can point me in?

Thank you for any assistance!

The physical material factory is set up to only make physical materials and not subclasses. You have two options:

  1. Make a new one off factory for your subtype, you can copy how PhysicalMaterialFactoryNew works exactly. Just clone it and change the names. You can also add an assetTypeAction if you want, but it’s not required as you’re subclassing a class that has one.
  2. If you have a lot of different subclasses, you could make a factory that lets you select which class to make. UDataAssetFactory is a good example of that method

Thank you Ben, I’ll try that out.