MCPcopy Create free account
hub / github.com/MothCocoon/FlowGraph / GetWorld

Method GetWorld

Source/Flow/Private/Nodes/FlowNodeBase.cpp:51–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51UWorld* UFlowNodeBase::GetWorld() const
52{
53 if (const UFlowAsset* FlowAsset = GetFlowAsset())
54 {
55 if (const UObject* FlowAssetOwner = FlowAsset->GetOwner())
56 {
57 return FlowAssetOwner->GetWorld();
58 }
59 }
60
61 if (const UFlowSubsystem* FlowSubsystem = GetFlowSubsystem())
62 {
63 return FlowSubsystem->GetWorld();
64 }
65
66 return nullptr;
67}
68
69void UFlowNodeBase::InitializeInstance()
70{

Callers 2

ExecuteInputMethod · 0.45
OnLoad_ImplementationMethod · 0.45

Calls 1

GetFlowAssetFunction · 0.85

Tested by

no test coverage detected