refactor: update show flag settings in BPC_PlanarCapture for UE5.7 compatibility; enhance SS_PlanarCaptureManager with FTickableGameObject interface

This commit is contained in:
Lefteris Notas
2026-05-22 16:02:01 +03:00
parent d16c661022
commit 9fd679fd5b
3 changed files with 37 additions and 10 deletions

View File

@@ -15,6 +15,8 @@
#include "CoreMinimal.h"
#include "Subsystems/WorldSubsystem.h"
#include "Tickable.h"
#include "Misc/Optional.h"
#include "Capture/PlanarCaptureCommon.h"
#include "SS_PlanarCaptureManager.generated.h"
@@ -38,7 +40,7 @@ DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnGlobalQualityCapChanged, EPlanarC
* On clients, it drives actual capture rendering.
*/
UCLASS()
class PG_FRAMEWORK_API USS_PlanarCaptureManager : public UWorldSubsystem
class PG_FRAMEWORK_API USS_PlanarCaptureManager : public UWorldSubsystem, public FTickableGameObject
{
GENERATED_BODY()
@@ -51,8 +53,13 @@ public:
virtual void Initialize(FSubsystemCollectionBase& Collection) override;
virtual void Deinitialize() override;
// FTickableGameObject
virtual void Tick(float DeltaTime) override;
virtual TStatId GetStatId() const override;
virtual bool IsTickable() const override { return !IsTemplate(); }
virtual bool IsTickableInEditor() const override { return false; }
virtual UWorld* GetTickableGameObjectWorld() const override { return GetWorld(); }
// ========================================================================
// Surface Registry