Hi,I found a question in "FBAUtils::GetBlueprintEditorForGraph" Function,because I can not use "convert get to set "and "generated getter and setter",now I fix the problem with a simple function,maybe you have a great Solution
old code:
{
if (UBlueprint Blueprint = Cast(Graph->GetOuter()))
{
......
}
}
new code:
{
UBlueprint Blueprint = nullptr;
UObject* temp = Graph->GetOuter();
//
while (Blueprint == nullptr)
{
Blueprint = Cast(temp);
temp = temp->GetOuter();
}
if (Blueprint)
{
......
}
}
Hi,I found a question in "FBAUtils::GetBlueprintEditorForGraph" Function,because I can not use "convert get to set "and "generated getter and setter",now I fix the problem with a simple function,maybe you have a great Solution old code: { if (UBlueprint Blueprint = Cast(Graph->GetOuter()))
{
......
}
}
new code:
{
UBlueprint Blueprint = nullptr;
UObject* temp = Graph->GetOuter();
//
while (Blueprint == nullptr)
{
Blueprint = Cast(temp);
temp = temp->GetOuter();
}
if (Blueprint)
{
......
}
}