Add alias to UKismetSystemLibrary::IsValid

This commit is contained in:
2026-04-11 09:31:57 +02:00
parent 8b45ad279a
commit 093d797db7

View File

@@ -20,6 +20,7 @@ namespace SDK {
class UConsole; class UConsole;
class UInputSettings; class UInputSettings;
class UKismetStringLibrary; class UKismetStringLibrary;
class UKismetSystemLibrary;
class UGameInstance; class UGameInstance;
class ULocalPlayer; class ULocalPlayer;
class APlayerController; class APlayerController;
@@ -29,6 +30,12 @@ namespace UC {
class FString; class FString;
} }
// Templates
template<typename T>
inline bool IsValidUObj(T* obj) {
return obj && SDK::UKismetSystemLibrary::IsValid(obj);
}
/** /**
* @brief Prepare all visual effects to be toggled by pending them. * @brief Prepare all visual effects to be toggled by pending them.
*/ */