AkGeometryComponentDetailsCustomization.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #pragma once
  16. #include "PropertyEditorModule.h"
  17. #include "IDetailCustomization.h"
  18. //////////////////////////////////////////////////////////////////////////
  19. // FAkGeometryDetailsCustomization
  20. class FAkGeometryComponentDetailsCustomization : public IDetailCustomization
  21. {
  22. public:
  23. FAkGeometryComponentDetailsCustomization();
  24. ~FAkGeometryComponentDetailsCustomization();
  25. // Makes a new instance of this detail layout class for a specific detail view requesting it
  26. static TSharedRef<IDetailCustomization> MakeInstance();
  27. // IDetailCustomization interface
  28. virtual void CustomizeDetails(const TSharedPtr<IDetailLayoutBuilder>& InDetailBuilder) override;
  29. virtual void CustomizeDetails(IDetailLayoutBuilder& InDetailBuilder) override;
  30. // End of IDetailCustomization interface
  31. private:
  32. TWeakPtr<IDetailLayoutBuilder> DetailBuilder;
  33. TWeakObjectPtr<class UAkGeometryComponent> ComponentBeingCustomized;
  34. void RefreshDetails();
  35. void BeginModify(FText TransactionText);
  36. void EndModify();
  37. };