UClothingSimulationFactory

Any clothing simulation factory should derive from this interface object to interact with the engine.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

ClothingSystemRuntimeInterface

Header

/Engine/Source/Runtime/ClothingSystemRuntimeInterface/Public/ClothingSimulationFactory.h

Include

#include "ClothingSimulationFactory.h"

Syntax

class UClothingSimulationFactory : public UObject

Remarks

Any clothing simulation factory should derive from this interface object to interact with the engine.

Functions

Name Description

Public function Virtual

UClothingSim...

 

CreateInteractor()

Creates the runtime interactor object for a clothing simulation.

Public function Virtual

IClothingSim...

 

CreateSimulation()

Create a simulation object for a skeletal mesh to use (see IClothingSimulation)

Public function Virtual

void

 

DestroySimulation

(
    IClothingSimulation* InSimulat...
)

Destroy a simulation object, guaranteed to be a pointer returned from CreateSimulation for this factory.

Public function Virtual Const

TArrayView< ...

 

GetClothConfigClasses()

Return the cloth config type for this cloth factory.

Public function Static

TSubclassOf<...

 

GetDefaultClothingSimulationFactoryClass()

Return the default clothing simulation factory class as set by the build or by the p.Cloth.DefaultClothingSimulationFactoryClass console variable if any available.

Public function Virtual Const

const UEnum ...

 

GetWeightMapTargetEnum()

Return an enum of the weight map targets that can be used with this simulation.

Public function Virtual

bool

 

SupportsAsset

(
    UClothingAssetBase* InAsset
)

Given an asset, decide whether this factory can create a simulation to use the data inside (return false if data is invalid or missing in the case of custom data)

Public function Virtual

bool

 

SupportsRuntimeInteraction()

Whether or not we provide an interactor object to manipulate the simulation at runtime.