Basic version of Carla Tools Plugin & Map Generator Widget
This commit is contained in:
parent
6e2462ddd6
commit
416510bc89
|
@ -108,6 +108,10 @@
|
|||
{
|
||||
"Name": "EditorScriptingUtilities",
|
||||
"Enabled": true
|
||||
},
|
||||
{
|
||||
"Name": "CarlaTools",
|
||||
"Enabled": true
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"FileVersion": 3,
|
||||
"Version": 1,
|
||||
"VersionName": "1.0",
|
||||
"FriendlyName": "CarlaTools",
|
||||
"Description": "This plugin provides engine tools for Carla",
|
||||
"Category": "Other",
|
||||
"CreatedBy": "Carla Team",
|
||||
"CreatedByURL": "http://carla.org",
|
||||
"DocsURL": "http://carla.readthedocs.io",
|
||||
"MarketplaceURL": "",
|
||||
"SupportURL": "https://github.com/carla-simulator/carla/issues",
|
||||
"CanContainContent": true,
|
||||
"IsBetaVersion": false,
|
||||
"IsExperimentalVersion": true,
|
||||
"Installed": true,
|
||||
"Modules": [
|
||||
{
|
||||
"Name": "CarlaTools",
|
||||
"Type": "Editor",
|
||||
"LoadingPhase": "PostEngineInit"
|
||||
}
|
||||
]
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
|
@ -0,0 +1,56 @@
|
|||
// Copyright Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
using UnrealBuildTool;
|
||||
|
||||
public class CarlaTools : ModuleRules
|
||||
{
|
||||
public CarlaTools(ReadOnlyTargetRules Target) : base(Target)
|
||||
{
|
||||
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
|
||||
|
||||
PublicIncludePaths.AddRange(
|
||||
new string[] {
|
||||
// ... add public include paths required here ...
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
PrivateIncludePaths.AddRange(
|
||||
new string[] {
|
||||
// ... add other private include paths required here ...
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
PublicDependencyModuleNames.AddRange(
|
||||
new string[]
|
||||
{
|
||||
"Core",
|
||||
// ... add other public dependencies that you statically link with here ...
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
PrivateDependencyModuleNames.AddRange(
|
||||
new string[]
|
||||
{
|
||||
"CoreUObject",
|
||||
"Engine",
|
||||
"Slate",
|
||||
"SlateCore",
|
||||
"UnrealEd",
|
||||
"Blutility",
|
||||
"UMG"
|
||||
// ... add private dependencies that you statically link with here ...
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
DynamicallyLoadedModuleNames.AddRange(
|
||||
new string[]
|
||||
{
|
||||
// ... add any modules that your module loads dynamically here ...
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
// Copyright Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
#include "CarlaTools.h"
|
||||
|
||||
#define LOCTEXT_NAMESPACE "FCarlaToolsModule"
|
||||
|
||||
void FCarlaToolsModule::StartupModule()
|
||||
{
|
||||
// This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module
|
||||
}
|
||||
|
||||
void FCarlaToolsModule::ShutdownModule()
|
||||
{
|
||||
// This function may be called during shutdown to clean up your module. For modules that support dynamic reloading,
|
||||
// we call this function before unloading the module.
|
||||
}
|
||||
|
||||
#undef LOCTEXT_NAMESPACE
|
||||
|
||||
IMPLEMENT_MODULE(FCarlaToolsModule, CarlaTools)
|
|
@ -0,0 +1,27 @@
|
|||
// Copyright (c) 2022 Computer Vision Center (CVC) at the Universitat Autonoma
|
||||
// de Barcelona (UAB).
|
||||
//
|
||||
// This work is licensed under the terms of the MIT license.
|
||||
// For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
// #if WITH_EDITOR
|
||||
|
||||
#include "MapGeneratorWidget.h"
|
||||
|
||||
#define DEBUG_MSG(x, ...) if(GEngine){GEngine->AddOnScreenDebugMessage(-1, 15.0f, FColor::Red, FString::Printf(TEXT(x), __VA_ARGS__));}
|
||||
|
||||
|
||||
// UMapGeneratorWidget::UMapGeneratorWidget()
|
||||
// {
|
||||
|
||||
// }
|
||||
|
||||
// UMapGeneratorWidget::~UMapGeneratorWidget()
|
||||
// {}
|
||||
|
||||
void UMapGeneratorWidget::HelloWorld()
|
||||
{
|
||||
DEBUG_MSG("RT Changed")
|
||||
}
|
||||
|
||||
// #endif
|
|
@ -0,0 +1,15 @@
|
|||
// Copyright Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Modules/ModuleManager.h"
|
||||
|
||||
class FCarlaToolsModule : public IModuleInterface
|
||||
{
|
||||
public:
|
||||
|
||||
/** IModuleInterface implementation */
|
||||
virtual void StartupModule() override;
|
||||
virtual void ShutdownModule() override;
|
||||
};
|
|
@ -0,0 +1,34 @@
|
|||
// Copyright (c) 2022 Computer Vision Center (CVC) at the Universitat Autonoma
|
||||
// de Barcelona (UAB).
|
||||
//
|
||||
// This work is licensed under the terms of the MIT license.
|
||||
// For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
|
||||
// #if WITH_EDITOR
|
||||
|
||||
// #pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "EditorUtilityWidget.h"
|
||||
//#include "Editor/Blutility/Classes/EditorUtilityWidget.h"
|
||||
|
||||
#include "MapGeneratorWidget.generated.h"
|
||||
|
||||
// /**
|
||||
// *
|
||||
// */
|
||||
UCLASS(BlueprintType)
|
||||
//UCLASS()
|
||||
class CARLATOOLS_API UMapGeneratorWidget : public UEditorUtilityWidget
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
// UMapGeneratorWidget();
|
||||
// ~UMapGeneratorWidget();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void HelloWorld();
|
||||
};
|
||||
// #endif
|
Loading…
Reference in New Issue