Navigation
API > API/Runtime > API/Runtime/Chaos
Simple callback command object. Commands are typically passed in as lambdas and there's no need for data management. Should not be used directly, see FPhysicsSolverBase::EnqueueCommand
| Name | FSimCallbackCommandObject |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/SimCallbackObject.h |
| Include Path | #include "Chaos/SimCallbackObject.h" |
Syntax
class FSimCallbackCommandObject : public Chaos::ISimCallbackObject
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSimCallbackCommandObject
(
TUniqueFunction< void()>&& InFunc, |
Chaos/SimCallbackObject.h | ||
FSimCallbackCommandObject
(
TUniqueFunction< void(FReal DeltaTime, FReal SimTime)>&& InFunc, |
Chaos/SimCallbackObject.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bFuncHasTimeParameters | bool | Chaos/SimCallbackObject.h | ||
| ExecuteOnStep | int32 | Chaos/SimCallbackObject.h | ||
| Func | TUniqueFunction< void()> | Those two function could be in an union. | Chaos/SimCallbackObject.h | |
| Func2 | TUniqueFunction< void(FReal deltaTime, FReal SimTime)> | Chaos/SimCallbackObject.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const int32 GetExecuteOnStep() |
Chaos/SimCallbackObject.h | ||
const bool ShouldDelay
(
const int32 Step, |
Chaos/SimCallbackObject.h | ||
const bool ShouldExecute
(
const int32 Step, |
Chaos/SimCallbackObject.h |
Overridden from ISimCallbackObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void FreeOutputData_External
(
FSimCallbackOutput* Output |
Free the output data. | Chaos/SimCallbackObject.h | |
virtual FName GetFNameForStatId() |
Get a stat name to describe this callback in external profiling and STATS when Named events are enabled | Chaos/SimCallbackObject.h |