解决打包错误

This commit is contained in:
997146918 2025-10-10 15:04:08 +08:00
parent a377b9e0fc
commit 2b29c2096a
8 changed files with 19 additions and 12 deletions

View File

@ -2,6 +2,6 @@
"BuildId": "37670630", "BuildId": "37670630",
"Modules": "Modules":
{ {
"DeskMode": "UnrealEditor-DeskMode.dll" "DeskMode": "UnrealEditor-DeskMode-0003.dll"
} }
} }

View File

@ -39,7 +39,7 @@ public class DeskMode : ModuleRules
"Slate", "Slate",
"SlateCore", "SlateCore",
// ... add private dependencies that you statically link with here ... // ... add private dependencies that you statically link with here ...
"UnrealEd" //"UnrealEd"
} }
); );

View File

@ -3,8 +3,8 @@
#include "DeskMode.h" #include "DeskMode.h"
#include "WindowTransparency.h" #include "WindowTransparency.h"
#include "Features/EditorFeatures.h" //#include "Features/EditorFeatures.h"
#include "Features/IPluginsEditorFeature.h" //#include "Features/IPluginsEditorFeature.h"
DEFINE_LOG_CATEGORY_STATIC(LogDeskMode, Log, All); DEFINE_LOG_CATEGORY_STATIC(LogDeskMode, Log, All);
#define LOCTEXT_NAMESPACE "FDeskModeModule" #define LOCTEXT_NAMESPACE "FDeskModeModule"
@ -16,10 +16,10 @@ void FDeskModeModule::StartupModule()
IModularFeatures& ModularFeatures = IModularFeatures::Get(); IModularFeatures& ModularFeatures = IModularFeatures::Get();
ModularFeatures.OnModularFeatureRegistered().AddRaw(this, &FDeskModeModule::OnModularFeatureRegistered); ModularFeatures.OnModularFeatureRegistered().AddRaw(this, &FDeskModeModule::OnModularFeatureRegistered);
//防止plugin模块先加载 //防止plugin模块先加载
if (ModularFeatures.IsModularFeatureAvailable(EditorFeatures::PluginsEditor)) // if (ModularFeatures.IsModularFeatureAvailable(EditorFeatures::PluginsEditor))
{ // {
OnModularFeatureRegistered(EditorFeatures::PluginsEditor, &ModularFeatures.GetModularFeature<IPluginsEditorFeature>(EditorFeatures::PluginsEditor)); // OnModularFeatureRegistered(EditorFeatures::PluginsEditor, &ModularFeatures.GetModularFeature<IPluginsEditorFeature>(EditorFeatures::PluginsEditor));
} // }
} }
void FDeskModeModule::ShutdownModule() void FDeskModeModule::ShutdownModule()

View File

@ -15,7 +15,11 @@ public class ProjectFishTarget : TargetRules
} }
private void RegisterModulesCreatedByRider() private void RegisterModulesCreatedByRider()
{
if (Type == TargetType.Editor)
{ {
ExtraModuleNames.AddRange(new string[] { "ProjectFishEditor" }); ExtraModuleNames.AddRange(new string[] { "ProjectFishEditor" });
} }
}
} }

View File

@ -116,6 +116,7 @@ void AShipbase::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
} }
} }
#if WITH_EDITOR
void AShipbase::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent) void AShipbase::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent)
{ {
Super::PostEditChangeProperty(PropertyChangedEvent); Super::PostEditChangeProperty(PropertyChangedEvent);
@ -123,6 +124,7 @@ void AShipbase::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyCha
ApplyMovementSettings(); ApplyMovementSettings();
ApplyCameraSettings(); ApplyCameraSettings();
} }
#endif
void AShipbase::OnOverlapWall(UPrimitiveComponent* HitComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, void AShipbase::OnOverlapWall(UPrimitiveComponent* HitComp, AActor* OtherActor, UPrimitiveComponent* OtherComp,
int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult) int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult)

View File

@ -31,8 +31,9 @@ public:
virtual void NotifyControllerChanged() override; virtual void NotifyControllerChanged() override;
// Called to bind functionality to input // Called to bind functionality to input
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override; virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
#if WITH_EDITOR
virtual void PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent) override; virtual void PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent) override;
#endif
UFUNCTION() UFUNCTION()
void OnOverlapWall(UPrimitiveComponent* HitComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, void OnOverlapWall(UPrimitiveComponent* HitComp, AActor* OtherActor, UPrimitiveComponent* OtherComp,
int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult); int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);

View File

@ -3,7 +3,7 @@
#include "SkillEffect.h" #include "SkillEffect.h"
#include "AsyncTreeDifferences.h" //#include "AsyncTreeDifferences.h"
#include "Skill.h" #include "Skill.h"