Navigation
API > API/Runtime > API/Runtime/DataflowSimulation
| Name | UDataflowSimulationManager |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Dataflow/Simulation/Public/Dataflow/DataflowSimulationManager.h |
| Include Path | #include "Dataflow/DataflowSimulationManager.h" |
Syntax
UCLASS (MinimalAPI)
class UDataflowSimulationManager : public UTickableWorldSubsystem
Inheritance Hierarchy
- FTickableObjectBase → FTickableGameObject → UTickableWorldSubsystem → UDataflowSimulationManager
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UWorldSubsystem → UTickableWorldSubsystem → UDataflowSimulationManager
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UDataflowSimulationManager() |
Dataflow/DataflowSimulationManager.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UDataflowSimulationManager() |
Dataflow/DataflowSimulationManager.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| OnCreatePhysicsStateHandle | FDelegateHandle | Static delegate for physics state creation | Dataflow/DataflowSimulationManager.h |
| OnDestroyPhysicsStateHandle | FDelegateHandle | Static delegate for physics state destruction | Dataflow/DataflowSimulationManager.h |
| OnObjectPropertyChangedHandle | FDelegateHandle | Static delegate for object property changed | Dataflow/DataflowSimulationManager.h |
| OnWorldPostActorTick | FDelegateHandle | Static delegate for post actor tick | Dataflow/DataflowSimulationManager.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsSimulationEnabled | bool | Boolean to control if the simulation should be disabled or not | Dataflow/DataflowSimulationManager.h | |
| bStepSimulationScene | bool | Boolean to check if we are stepping the simulation scene | Dataflow/DataflowSimulationManager.h | |
| SimulationData | TMap< TObjectPtr< UDataflow >, UE::Dataflow::Private::FDataflowSimulationData > | Dataflow simulation data registered to the manager | Dataflow/DataflowSimulationManager.h | |
| SimulationTasks | TArray< FGraphEventRef > | Simulation tasks in which the graph will be evaluated | Dataflow/DataflowSimulationManager.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddSimulationInterface
(
IDataflowSimulationInterface* SimulationInterface |
Add a dataflow simulation interface to the manager | Dataflow/DataflowSimulationManager.h | |
void AdvanceSimulationProxies
(
const float DeltaTime, |
Advance in time the registered simulation data (PT) | Dataflow/DataflowSimulationManager.h | |
void CompleteSimulationTasks() |
Complete all the simulation tasks | Dataflow/DataflowSimulationManager.h | |
TSharedPtr< UE::Dataflow::FDataflowSimulationContext > GetSimulationContext
(
const TObjectPtr< UDataflow >& DataflowAsset |
Get the simulation context for a given asset | Dataflow/DataflowSimulationManager.h | |
bool GetSimulationEnabled() |
Gets whether the simulation is enabled or disabled | Dataflow/DataflowSimulationManager.h | |
bool HasSimulationInterface
(
const IDataflowSimulationInterface* SimulationInterface |
Check if the manager has a simulation interface | Dataflow/DataflowSimulationManager.h | |
void InitSimulationInterfaces() |
Init all the simulation interfaces | Dataflow/DataflowSimulationManager.h | |
void ReadRestartData() |
Read the restart data and Write it to the simulation proxies (to be send from GT->PT) | Dataflow/DataflowSimulationManager.h | |
void ReadSimulationInterfaces
(
const float DeltaTime, |
Read the simulation interfaces and Write all the data to the simulation proxies (to be send from GT->PT) | Dataflow/DataflowSimulationManager.h | |
void RemoveSimulationInterface
(
const IDataflowSimulationInterface* SimulationInterface |
Remove a dataflow simulation interface from the manager | Dataflow/DataflowSimulationManager.h | |
void ResetSimulationInterfaces() |
Reset all the simulation interfaces | Dataflow/DataflowSimulationManager.h | |
void SetSimulationEnabled
(
const bool bSimulationEnabled |
Set the simulation flag to enable/disable the simulation | Dataflow/DataflowSimulationManager.h | |
void SetSimulationStepping
(
const bool bSimulationStepping |
Set the simulation scene stepping bool | Dataflow/DataflowSimulationManager.h | |
void StartSimulationTasks
(
const float DeltaTime, |
Start the simulation tasks given a delta time | Dataflow/DataflowSimulationManager.h | |
void WriteSimulationInterfaces
(
const float DeltaTime, |
Read all the data from the simulation proxies and write the result onto the interfaces (received from PT->GT) | Dataflow/DataflowSimulationManager.h |
Overridden from UWorldSubsystem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool DoesSupportWorldType
(
const EWorldType::Type WorldType |
Dataflow/DataflowSimulationManager.h |
Overridden from USubsystem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Deinitialize() |
Dataflow/DataflowSimulationManager.h | ||
virtual void Initialize
(
FSubsystemCollectionBase& Collection |
Dataflow/DataflowSimulationManager.h |
Overridden from FTickableGameObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsTickableInEditor() |
Dataflow/DataflowSimulationManager.h |
Overridden from FTickableObjectBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TStatId GetStatId() |
Dataflow/DataflowSimulationManager.h | ||
virtual ETickableTickType GetTickableTickType() |
Dataflow/DataflowSimulationManager.h | ||
virtual void Tick
(
float DeltaTime |
Dataflow/DataflowSimulationManager.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void OnShutdown() |
Static function to remove world delegates | Dataflow/DataflowSimulationManager.h | |
static void OnStartup() |
Static function to add world delegates | Dataflow/DataflowSimulationManager.h |