![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PhysicalMaterials.h>
Static Public Member Functions | |
| static CHAOS_API FPhysicalMaterialManager & | Get () |
Global manager for physical materials. Materials are created, updated and destroyed only on the game thread and an immutable copy of the materials are stored on each solver. The solvers module binds to the updated event in this manager and enqueues updates to all active solvers when a material is updated.
The material manager provides handles for the objects which should be stored instead of the material pointer. When accessing the internal material always use the handle rather than storing the result of Get()
| FMaterialHandle Chaos::FPhysicalMaterialManager::Create | ( | ) |
Create a new material, returning a stable handle to it - this should be stored and not the actual material pointer
| FMaterialMaskHandle Chaos::FPhysicalMaterialManager::CreateMask | ( | ) |
| void Chaos::FPhysicalMaterialManager::Destroy | ( | FMaterialHandle | InHandle | ) |
Destroy the material referenced by the provided handle
| void Chaos::FPhysicalMaterialManager::Destroy | ( | FMaterialMaskHandle | InHandle | ) |
|
static |
| const Chaos::THandleArray< FChaosPhysicsMaterialMask > & Chaos::FPhysicalMaterialManager::GetMasterMaterialMasks_External | ( | ) | const |
| const Chaos::THandleArray< FChaosPhysicsMaterial > & Chaos::FPhysicalMaterialManager::GetMasterMaterials_External | ( | ) | const |
Gets the internal list of primary materials representing the current user state of the material data
| const Chaos::THandleArray< FChaosPhysicsMaterialMask > & Chaos::FPhysicalMaterialManager::GetPrimaryMaterialMasks_External | ( | ) | const |
| const Chaos::THandleArray< FChaosPhysicsMaterial > & Chaos::FPhysicalMaterialManager::GetPrimaryMaterials_External | ( | ) | const |
| const FChaosPhysicsMaterialMask * Chaos::FPhysicalMaterialManager::Resolve | ( | FChaosConstMaterialHandle | InHandle | ) | const |
| CHAOS_API const FChaosPhysicsMaterialMask * Chaos::FPhysicalMaterialManager::Resolve | ( | FChaosConstMaterialMaskHandle | InHandle | ) | const |
| FChaosPhysicsMaterialMask * Chaos::FPhysicalMaterialManager::Resolve | ( | FChaosMaterialHandle | InHandle | ) | const |
Get the actual material from a handle
| CHAOS_API FChaosPhysicsMaterialMask * Chaos::FPhysicalMaterialManager::Resolve | ( | FChaosMaterialMaskHandle | InHandle | ) | const |
| void Chaos::FPhysicalMaterialManager::UpdateMaterial | ( | FMaterialHandle | InHandle | ) |
Signals stakeholders that the stored material for the provided handle has changed
| void Chaos::FPhysicalMaterialManager::UpdateMaterialMask | ( | FMaterialMaskHandle | InHandle | ) |
| FOnMaterialCreated Chaos::FPhysicalMaterialManager::OnMaterialCreated |
| FOnMaterialDestroyed Chaos::FPhysicalMaterialManager::OnMaterialDestroyed |
| FOnMaterialMaskCreated Chaos::FPhysicalMaterialManager::OnMaterialMaskCreated |
| FOnMaterialMaskDestroyed Chaos::FPhysicalMaterialManager::OnMaterialMaskDestroyed |
| FOnMaterialMaskUpdated Chaos::FPhysicalMaterialManager::OnMaterialMaskUpdated |
| FOnMaterialUpdated Chaos::FPhysicalMaterialManager::OnMaterialUpdated |
Events