RuntimeMeshComponentDetails.h 895 B

123456789101112131415161718192021222324252627
  1. // Copyright 2016 Chris Conway (Koderz). All Rights Reserved.
  2. #pragma once
  3. #include "IDetailCustomization.h"
  4. #include "DetailLayoutBuilder.h"
  5. class FRuntimeMeshComponentDetails : public IDetailCustomization
  6. {
  7. public:
  8. /** Makes a new instance of this detail layout class for a specific detail view requesting it */
  9. static TSharedRef<IDetailCustomization> MakeInstance();
  10. /** IDetailCustomization interface */
  11. virtual void CustomizeDetails( IDetailLayoutBuilder& DetailBuilder ) override;
  12. /** Handle clicking the convert button */
  13. FReply ClickedOnConvertToStaticMesh();
  14. /** Is the convert button enabled */
  15. bool ConvertToStaticMeshEnabled() const;
  16. /** Util to get the RuntimeMeshComponent we want to convert */
  17. class URuntimeMeshComponent* GetFirstSelectedRuntimeMeshComp() const;
  18. /** Cached array of selected objects */
  19. TArray< TWeakObjectPtr<UObject> > SelectedObjectsList;
  20. };