Navigation
API > API/Runtime > API/Runtime/PhysicsCore
This is the PhysicalMaterialPropertyBase which the PhysicalMaterial has. Individual games should derive their own MyGamPhysicalMaterialProperty.
Then inside that object you can either have a bunch of properties or have it point to your game specific objects.
(e.g. You have have impact sounds and impact effects for all of the weapons in your game. So you have an object which contains the data needed per material type and then you have your MyGamePhysicalMaterialProperty point to that. )
class UMyGamePhysicalMaterialProperty extends UPhysicalMaterialPropertyBase editinlinenew;
editable() editinline MyGameSpecificImpactEffects ImpactEffects; editable() editinline MyGameSpecificImpactSounds ImpactSounds;
| Name | UDEPRECATED_PhysicalMaterialPropertyBase |
| Type | class |
| Header File | /Engine/Source/Runtime/PhysicsCore/Public/PhysicalMaterials/PhysicalMaterialPropertyBase.h |
| Include Path | #include "PhysicalMaterials/PhysicalMaterialPropertyBase.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object, EditInlineNew, Abstract, MinimalAPI, Deprecated)
class UDEPRECATED_PhysicalMaterialPropertyBase : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UDEPRECATED_PhysicalMaterialPropertyBase
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UDEPRECATED_PhysicalMaterialPropertyBase
(
const FObjectInitializer& ObjectInitializer |
PhysicalMaterials/PhysicalMaterialPropertyBase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual EPhysicalSurface ConvertToSurfaceType() |
Compatibility support function | PhysicalMaterials/PhysicalMaterialPropertyBase.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsAsset() |
PhysicalMaterials/PhysicalMaterialPropertyBase.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EPhysicalSurface GetSurfaceType
(
int32 Value |
Set material type from int | PhysicalMaterials/PhysicalMaterialPropertyBase.h |