In UE5 FGCObjects must implement GetReferencerName()

This commit is contained in:
Steve Streeting 2022-09-16 14:44:23 +01:00
parent b7596fb71a
commit 850d817666
2 changed files with 12 additions and 1 deletions

View File

@ -50,6 +50,13 @@ void FStevesTextureRenderTargetPool::AddReferencedObjects(FReferenceCollector& C
Collector.AddReferencedObjects(UnreservedTextures);
}
#if ENGINE_MAJOR_VERSION >= 5
FString FStevesTextureRenderTargetPool::GetReferencerName() const
{
return "FStevesTextureRenderTargetPool";
}
#endif
FStevesTextureRenderTargetReservationPtr FStevesTextureRenderTargetPool::ReserveTexture(FIntPoint Size,
ETextureRenderTargetFormat Format, const UObject* Owner)
{

View File

@ -111,6 +111,10 @@ public:
// FGCObject
virtual void AddReferencedObjects(FReferenceCollector& Collector) override;
#if ENGINE_MAJOR_VERSION >= 5
// FGCObject
virtual FString GetReferencerName() const override;
#endif
/**
* Reserve a texture for use as a render target. This will create a new texture target if needed.
* @param Size The dimensions of the texture