123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #pragma once
- #if WITH_EDITOR
- #include "CoreMinimal.h"
- #include "UObject/ObjectMacros.h"
- #include "SceneManagement.h"
- #include "AkAcousticPortal.h"
- #endif
- #include "Components/PrimitiveComponent.h"
- #include "AkDrawPortalComponent.generated.h"
- UCLASS(collapsecategories, hidecategories = Object, editinlinenew, MinimalAPI)
- class UDrawPortalComponent : public UPrimitiveComponent
- {
- GENERATED_BODY()
- public:
- UDrawPortalComponent(const FObjectInitializer& ObjectInitializer);
- #if WITH_EDITOR
- void DrawPortalOutline(const FSceneView* View, FPrimitiveDrawInterface* PDI, FMeshElementCollector& Collector, int32 ViewIndex) const;
- const UAkPortalComponent* GetPortalParent() const;
- private:
- virtual class FPrimitiveSceneProxy* CreateSceneProxy() override;
- virtual FBoxSphereBounds CalcBounds(const FTransform& LocalToWorld) const override;
- #endif
- };
|