Navigation
API > API/Runtime > API/Runtime/ChaosSolverEngine
| Name | UChaosGameplayEventDispatcher |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/ChaosSolverEngine/Public/Chaos/ChaosGameplayEventDispatcher.h |
| Include Path | #include "Chaos/ChaosGameplayEventDispatcher.h" |
Syntax
UCLASS (MinimalAPI)
class UChaosGameplayEventDispatcher : public UChaosEventListenerComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → UChaosEventListenerComponent → UChaosGameplayEventDispatcher
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UChaosGameplayEventDispatcher() |
Chaos/ChaosGameplayEventDispatcher.h |
Structs
| Name | Remarks |
|---|---|
| FUniqueContactPairKey | Contains the set of properties that uniquely identifies a reported collision Note that order matters, { Body0, Body1 } is not the same as { Body1, Body0 } |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BreakEventRegistrations | TMap< TObjectPtr< UPrimitiveComponent >, FBreakEventCallbackWrapper > | Chaos/ChaosGameplayEventDispatcher.h | ||
| CollisionEventRegistrations | TMap< TObjectPtr< UPrimitiveComponent >, FChaosHandlerSet > | Chaos/ChaosGameplayEventDispatcher.h | ||
| ContactPairToPendingChaosNotifyMap | TMap< FUniqueContactPairKey, int32 > | Key is the unique pair, value is index into PendingChaosCollisionNotifies array | Chaos/ChaosGameplayEventDispatcher.h | |
| ContactPairToPendingNotifyMap | TMap< FUniqueContactPairKey, int32 > | Key is the unique pair, value is index into PendingNotifies array | Chaos/ChaosGameplayEventDispatcher.h | |
| CrumblingEventRegistrations | TMap< TObjectPtr< UPrimitiveComponent >, FCrumblingEventCallbackWrapper > | Chaos/ChaosGameplayEventDispatcher.h | ||
| LastBreakingDataTime | float | Chaos/ChaosGameplayEventDispatcher.h | ||
| LastCollisionDataTime | float | Chaos/ChaosGameplayEventDispatcher.h | ||
| LastCrumblingDataTime | float | Chaos/ChaosGameplayEventDispatcher.h | ||
| LastRemovalDataTime | float | Chaos/ChaosGameplayEventDispatcher.h | ||
| PendingChaosCollisionNotifies | TArray< FChaosPendingCollisionNotify > | Holds the list of pending Chaos notifies that are to be processed | Chaos/ChaosGameplayEventDispatcher.h | |
| PendingCollisionNotifies | TArray< FCollisionNotifyInfo > | Holds the list of pending legacy notifies that are to be processed | Chaos/ChaosGameplayEventDispatcher.h | |
| RemovalEventRegistrations | TMap< TObjectPtr< UPrimitiveComponent >, FRemovalEventCallbackWrapper > | Chaos/ChaosGameplayEventDispatcher.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void RegisterChaosEvents() |
Chaos/ChaosGameplayEventDispatcher.h | ||
void RegisterForBreakEvents
(
UPrimitiveComponent* Component, |
Chaos/ChaosGameplayEventDispatcher.h | ||
void RegisterForCollisionEvents
(
UPrimitiveComponent* ComponentToListenTo, |
Use to subscribe to collision events. | Chaos/ChaosGameplayEventDispatcher.h | |
void RegisterForCrumblingEvents
(
UPrimitiveComponent* Component, |
Chaos/ChaosGameplayEventDispatcher.h | ||
void RegisterForRemovalEvents
(
UPrimitiveComponent* Component, |
Chaos/ChaosGameplayEventDispatcher.h | ||
void UnregisterChaosEvents() |
Chaos/ChaosGameplayEventDispatcher.h | ||
void UnRegisterForBreakEvents
(
UPrimitiveComponent* Component |
Chaos/ChaosGameplayEventDispatcher.h | ||
void UnRegisterForCollisionEvents
(
UPrimitiveComponent* ComponentToListenTo, |
Chaos/ChaosGameplayEventDispatcher.h | ||
void UnRegisterForCrumblingEvents
(
UPrimitiveComponent* Component |
Chaos/ChaosGameplayEventDispatcher.h | ||
void UnRegisterForRemovalEvents
(
UPrimitiveComponent* Component |
Chaos/ChaosGameplayEventDispatcher.h |
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnRegister() |
Chaos/ChaosGameplayEventDispatcher.h | ||
virtual void OnUnregister() |
Chaos/ChaosGameplayEventDispatcher.h |