How to get the value LoopBehavior of Niagara SystemState?

重现步骤
Here is the static funtion to get the value.

`void GatherNiagaraSystemUpdateScriptVariables(TSoftObjectPtr InSystem, TArray& OutVariables)
{
OutVariables.Empty();
UNiagaraScript* Script = InSystem->GetSystemUpdateScript();
UNiagaraScriptSource* Source = Cast(Script->GetLatestSource());
UNiagaraGraph* ScriptSourceGraph = Source->NodeGraph;
TArray<UEdGraphNode*> NodesToProcess = ScriptSourceGraph->Nodes;

TArray Result;
for (UEdGraphNode* Node : NodesToProcess)
{
if (IsValid(Node))
{
if (const UNiagaraNodeFunctionCall* NodeFunctionCall = Cast(Node))
{
UNiagaraScript* NodeScript = NodeFunctionCall->FunctionScript;
if (const UNiagaraScriptSource* NodeScriptSource = Cast(NodeScript->GetLatestSource()))
{
const UNiagaraGraph* NodeScriptSourceGraph = NodeScriptSource->NodeGraph;
OutVariables.Append(NodeScriptSourceGraph->FindStaticSwitchInputs());
}
}
}
}
}`