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); Collector.AddReferencedObjects(UnreservedTextures);
} }
#if ENGINE_MAJOR_VERSION >= 5
FString FStevesTextureRenderTargetPool::GetReferencerName() const
{
return "FStevesTextureRenderTargetPool";
}
#endif
FStevesTextureRenderTargetReservationPtr FStevesTextureRenderTargetPool::ReserveTexture(FIntPoint Size, FStevesTextureRenderTargetReservationPtr FStevesTextureRenderTargetPool::ReserveTexture(FIntPoint Size,
ETextureRenderTargetFormat Format, const UObject* Owner) ETextureRenderTargetFormat Format, const UObject* Owner)
{ {

View File

@ -110,7 +110,11 @@ public:
// FGCObject // FGCObject
virtual void AddReferencedObjects(FReferenceCollector& Collector) override; 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. * 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 * @param Size The dimensions of the texture