[英]error(MSB3073) in visual studio with unreal engine
我是使用Visual Studio和虚幻引擎的新手(但我以前学过C ++)。 我现在有麻烦了。 让我解释 :
我从UE使用虚幻引擎4.9.2和Visual Studio 2013 Update 4(已安装)。
但是VS正常打开。
稍后,当我在UE中创建一个新的actor并尝试添加以下代码来构建它时:
UPROPERTY(EditAnywhere)
我有2条全新的错误消息:
错误1错误代码:OtherCompilationError(5)E:\\ Documents \\ Unreal Projects \\ test4 \\ Intermediate \\ ProjectFiles \\ Error test4
错误2错误MSB3073:命令““ E:\\ programmes \\ unrealengine \\ Epic Games \\ 4.9 \\ Engine \\ Build \\ BatchFiles \\ Build.bat” test4Editor Win64开发“ E:\\ Documents \\ Unreal Projects \\ test4 \\ test4.uproject”-火箭-waitmutex”以代码-1退出。 C:\\ Program Files(x86)\\ MSBuild \\ Microsoft.Cpp \\ v4.0 \\ V120 \\ Microsoft.MakeFile.Targets 38 5 test4
我试图解决的问题:-删除并重新安装虚幻引擎和Visual Studio: 相同的问题。
从另一个来源安装Visual Studio,然后安装虚幻引擎(显然,将它们都移除并重新启动): 相同的问题。
安装Unreal Engine 4.10 =>其他问题,我无法安装Visual Studio 2015(UE附带的安装程序失败)。
使用UE 4.10从其他来源安装Visual Studio 2015: 相同的问题
卸载全部并使用UE4.9和VS2013重试: 相同的问题
标头的完整源代码(.cpp文件尚未修改,仍为空白):
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/Actor.h"
#include "MyActor.generated.h"
UCLASS()
class TEST4_API AMyActor : public AActor
{
GENERATED_BODY()
UPROPERTY(EditAnywhere)
public:
// Sets default values for this actor's properties
AMyActor();
// Called when the game starts or when spawned
virtual void BeginPlay() override;
// Called every frame
virtual void Tick( float DeltaSeconds ) override;
};
老实说,我在学校学习了如何使用makefile和linux进行编程,但是有了IDE,我完全是一个初学者。 我希望有人能够帮助我。 提前致谢。
PS:如果我犯了语法错误,我深表歉意,但英语不是我的母语。
尝试:
#pragma once
#include "GameFramework/Actor.h"
#include "MyActor.generated.h"
UCLASS()
class TEST4_API AMyActor : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
AMyActor();
// Called when the game starts or when spawned
virtual void BeginPlay() override;
// Called every frame
virtual void Tick( float DeltaSeconds ) override;
};
我认为您的问题不是立即在带有变量的UPROPERTY(EditAnywhere)之后。 UPROPERTY的标准语法为:
UPROPERTY([specifier, specifier, ...], [meta=(key=value, key=value, ...)]) Type VariableName;
有关更多信息: https : //wiki.unrealengine.com/UPROPERTY
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.