UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
InvalidationBox.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "Widgets/SWidget.h"
9#include "InvalidationBox.generated.h"
10
12
18UCLASS(MinimalAPI)
20{
22
23public:
24
28 UE_DEPRECATED(4.27, "InvalidationCache is not used.")
29 UFUNCTION(BlueprintCallable, Category="Invalidation Box", meta=(DeprecatedFunction))
30 UMG_API void InvalidateCache();
31
36 UFUNCTION(BlueprintCallable, Category="Invalidation Box")
37 UMG_API bool GetCanCache() const;
38
43 UFUNCTION(BlueprintCallable, Category="Invalidation Box")
44 UMG_API void SetCanCache(bool CanCache);
45
46 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
47
48#if WITH_EDITOR
49 UMG_API virtual const FText GetPaletteCategory() override;
50#endif
51
52protected:
53
54 //~ Begin UPanelWidget interface
55 UMG_API virtual void OnSlotAdded(UPanelSlot* Slot) override;
56 UMG_API virtual void OnSlotRemoved(UPanelSlot* Slot) override;
57 //~ End UPanelWidget interface
58
59 //~ Begin UWidget interface
60 UMG_API virtual TSharedRef<SWidget> RebuildWidget() override;
61 //~ End UWidget interface
62
63protected:
64 UE_DEPRECATED(5.2, "Direct access to bCanCache is deprecated. Please use the getter or setter.")
69 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter = "GetCanCache", Setter = "SetCanCache", BlueprintGetter = "GetCanCache", BlueprintSetter = "SetCanCache", Category = "Caching")
70 bool bCanCache;
71
73 TSharedPtr<class SInvalidationPanel> MyInvalidationPanel;
74};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const bool
Definition NetworkReplayStreaming.h:178
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Text.h:385
Definition SInvalidationPanel.h:29
SLATE_API bool GetCanCache() const
Definition SInvalidationPanel.cpp:161
SLATE_API void SetCanCache(bool InCanCache)
Definition SInvalidationPanel.cpp:233
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition ContentWidget.h:13
Definition InvalidationBox.h:20
Definition PanelSlot.h:13