EM_Task/UnrealEd/Private/GlobalEditorNotification.h
Boshuang Zhao 5144a49c9b add
2026-02-13 16:18:33 +08:00

33 lines
889 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/Notifications/GlobalNotification.h"
#include "Stats/Stats.h"
#include "TickableEditorObject.h"
/**
* Class used to provide simple global editor notifications (for things like shader compilation and texture streaming)
*/
class FGlobalEditorNotification: public FGlobalNotification
, public FTickableEditorObject
{
public:
FGlobalEditorNotification(const double InEnableDelayInSeconds = 1.0)
: FGlobalNotification(InEnableDelayInSeconds)
{
}
virtual ~FGlobalEditorNotification()
{
}
private:
/** FTickableEditorObject interface */
virtual void Tick(float DeltaTime) override;
virtual ETickableTickType GetTickableTickType() const override { return ETickableTickType::Always; }
virtual TStatId GetStatId() const override;
};