AkDrawPortalComponent.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*******************************************************************************
  2. The content of this file includes portions of the proprietary AUDIOKINETIC Wwise
  3. Technology released in source code form as part of the game integration package.
  4. The content of this file may not be used without valid licenses to the
  5. AUDIOKINETIC Wwise Technology.
  6. Note that the use of the game engine is subject to the Unreal(R) Engine End User
  7. License Agreement at https://www.unrealengine.com/en-US/eula/unreal
  8. License Usage
  9. Licensees holding valid licenses to the AUDIOKINETIC Wwise Technology may use
  10. this file in accordance with the end user license agreement provided with the
  11. software or, alternatively, in accordance with the terms contained
  12. in a written agreement between you and Audiokinetic Inc.
  13. Copyright (c) 2023 Audiokinetic Inc.
  14. *******************************************************************************/
  15. /*=============================================================================
  16. AkDrawPortalComponent.h:
  17. =============================================================================*/
  18. #pragma once
  19. #if WITH_EDITOR
  20. #include "CoreMinimal.h"
  21. #include "UObject/ObjectMacros.h"
  22. #include "SceneManagement.h"
  23. #include "AkAcousticPortal.h"
  24. #endif // WITH_EDITOR
  25. #include "Components/PrimitiveComponent.h"
  26. #include "AkDrawPortalComponent.generated.h"
  27. /**
  28. * Utility component for drawing a portal in a scene.
  29. */
  30. UCLASS(collapsecategories, hidecategories = Object, editinlinenew, MinimalAPI)
  31. class UDrawPortalComponent : public UPrimitiveComponent
  32. {
  33. GENERATED_BODY()
  34. public:
  35. UDrawPortalComponent(const FObjectInitializer& ObjectInitializer);
  36. #if WITH_EDITOR
  37. void DrawPortalOutline(const FSceneView* View, FPrimitiveDrawInterface* PDI, FMeshElementCollector& Collector, int32 ViewIndex) const;
  38. const UAkPortalComponent* GetPortalParent() const;
  39. private:
  40. virtual class FPrimitiveSceneProxy* CreateSceneProxy() override;
  41. virtual FBoxSphereBounds CalcBounds(const FTransform& LocalToWorld) const override;
  42. #endif // WITH_EDITOR
  43. };