Files
UnrealEngine/Engine/Source/Runtime/UMG/Private/Components/Visual.cpp
2025-05-18 13:04:45 +08:00

33 lines
718 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Components/Visual.h"
#include "Engine/UserInterfaceSettings.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(Visual)
/////////////////////////////////////////////////////
// UVisual
UVisual::UVisual(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
void UVisual::ReleaseSlateResources(bool bReleaseChildren)
{
}
void UVisual::BeginDestroy()
{
Super::BeginDestroy();
const bool bReleaseChildren = false;
ReleaseSlateResources(bReleaseChildren);
}
bool UVisual::NeedsLoadForServer() const
{
const UUserInterfaceSettings* UISettings = GetDefault<UUserInterfaceSettings>();
return UISettings->bLoadWidgetsOnDedicatedServer;
}