Files
UnrealEngineUWP/Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionISMPoolSubSystem.h
jeremy moore 36fbd59bf5 Move creation of ISMPoolActor to outside of place where it may be called in a construction script.
#preflight 642c79d08f078cc703a5a0df

[CL 24920916 by jeremy moore in ue5-main branch]
2023-04-04 19:18:34 -04:00

34 lines
938 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Subsystems/WorldSubsystem.h"
#include "GeometryCollectionISMPoolSubSystem.generated.h"
class AGeometryCollectionISMPoolActor;
/**
* A subsystem managing ISMPool actors ( used by geometry collection now but repurposed for more general use )
*/
UCLASS()
class GEOMETRYCOLLECTIONENGINE_API UGeometryCollectionISMPoolSubSystem : public UWorldSubsystem
{
GENERATED_BODY()
public:
UGeometryCollectionISMPoolSubSystem();
// USubsystem BEGIN
virtual void Initialize(FSubsystemCollectionBase& Collection) override;
virtual void Deinitialize() override;
// USubsystem END
AGeometryCollectionISMPoolActor* FindISMPoolActor();
protected:
/** for now we only use one ISMPool actor per world, but we could extend the system to manage many more and return the right one based on search criteria */
TObjectPtr<AGeometryCollectionISMPoolActor> ISMPoolActor;
};