RuntimeMeshComponentEditorPlugin.cpp 849 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2016 Chris Conway (Koderz). All Rights Reserved.
  2. #include "RuntimeMeshComponentEditorPrivatePCH.h"
  3. class FRuntimeMeshComponentEditorPlugin : public IRuntimeMeshComponentEditorPlugin
  4. {
  5. /** IModuleInterface implementation */
  6. virtual void StartupModule() override;
  7. virtual void ShutdownModule() override;
  8. };
  9. IMPLEMENT_MODULE( FRuntimeMeshComponentEditorPlugin, RuntimeMeshComponentEditor )
  10. void FRuntimeMeshComponentEditorPlugin::StartupModule()
  11. {
  12. {
  13. FPropertyEditorModule& PropertyModule = FModuleManager::LoadModuleChecked<FPropertyEditorModule>("PropertyEditor");
  14. PropertyModule.RegisterCustomClassLayout(URuntimeMeshComponent::StaticClass()->GetFName(), FOnGetDetailCustomizationInstance::CreateStatic(&FRuntimeMeshComponentDetails::MakeInstance));
  15. }
  16. }
  17. void FRuntimeMeshComponentEditorPlugin::ShutdownModule()
  18. {
  19. }