Hi !
In editor, I’m creating new node in an opened Material with c++ as:
void MyFunction::CreateNode(UMaterial* MyMaterial)
{
UMaterialExpressionScalarParameter* ScalarParam = NewObject<UMaterialExpressionScalarParameter>(MyMaterial);
MyMaterial->Expressions.Add(ScalarParam);
}
I would like to know if it’s possible to refresh the material graph editor to display the new created node?
The node spawns if I close and reopen the Material, but is there another way?