没有存储或类说明符

时间:2019-06-24 16:01:46

标签: c++ unreal-engine4

在YouTube上的一系列教程之后,我在Visual Studio上创建了一个新类,但生成的代码显示错误。

我尝试重新安装Visual Studio,安装的Windows sdk尝试向下移动了generate.h文件,但没有任何效果

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Components/StaticMeshComponent.h"
#include "Components/SphereComponent.h"
#include "MyActor.generated.h"

UCLASS()
class MYPROJECT4_API AMyActor : public AActor
{
    GENERATED_BODY()

public: 
    // Sets default values for this actor's properties
    AMyActor();

protected:
    UStaticMeshComponent* MeshComp;

    // Called when the game starts or when spawned
    virtual void BeginPlay() override;

public: 
    // Called every frame
    virtual void Tick(float DeltaTime) override;

};

错误1:-  FMeshDrawSingleShaderBindings未定义 错误2:- GENERATED_BODY()没有存储空间或类说明符

0 个答案:

没有答案