Material instances are now pretty polished. We can create them, and dump and modify all types of parameters. Factory-based creation is now more polished, and it opens new assets in the editor if it can.

This commit is contained in:
2026-04-07 17:43:54 -04:00
parent 12d924904d
commit 476b0057f5
8 changed files with 142 additions and 36 deletions

View File

@@ -354,7 +354,6 @@ bool WingUtils::StringToEnum(UEnum* Enum, const FString& Str, int64& OutValue, W
return true;
}
// ============================================================
// Common Error Reporting
// ============================================================
@@ -396,6 +395,16 @@ bool WingUtils::CheckCanRename(UEdGraphNode* Node, const FString &Name, WingOut
return true;
}
bool WingUtils::CheckNewObjectNotNull(UObject *Obj, const TCHAR *Kind, WingOut Errors)
{
if (Obj == nullptr)
{
Errors.Printf(TEXT("NewObject failed to create a %s"), Kind);
return false;
}
return true;
}
// ============================================================
// Reparent validation
// ============================================================