虚幻Unreal - A计划(永久有效期) 扫二维码继续学习 二维码时效为半小时

(85评价)
价格: 3059.00元
项目一直卡在71%打不开
ycqcyt发起了问答2019-04-05
2
回复
846
浏览

老师我的这个问题和上一个问题都很奇葩 需要我把项目发过去吗

红色的这句注释了就能打开项目 否则一直卡在71%

#include "PowerUp.h"
#include "Components/BillboardComponent.h"
#include "Components/BoxComponent.h"
#include "Public/BlockGenerator.h"
#include "Engine/World.h"
#include "Kismet/GameplayStatics.h"
#include "Public/UObject/ConstructorHelpers.h"


// Sets default values
APowerUp::APowerUp()
{
  // Set this actor to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
 PrimaryActorTick.bCanEverTick = true;
 billboard = CreateDefaultSubobject<UBillboardComponent>(TEXT("billboard"));
 RootComponent = billboard;
 boxCollision = CreateDefaultSubobject<UBoxComponent>(TEXT("boxCollision"));
 boxCollision->AttachTo(billboard);
 generator = ConstructorHelpers::FClassFinder<ABlockGenerator>(TEXT("Blueprint'/Game/BluePrints/BP_BlockGenerator'")).Class;

}

。h文件中

 TSubclassOf<class ABlockGenerator> generator;


 

所有回复
  • 老师_德鲁伊 2019-04-06

    你好,这个我这里也运行不起来,我怀疑是因为他们互相查找的原因,加上你这句话,就相当于BlockGenerator里查找UnbreakableBlock,然后再UnbreakableBlock里查找Powerup,最后又在Powerup里查找回了BlockGenerator。建议如果实在需要generator的话,把他通过蓝图赋值。

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • ycqcyt 2019-04-06

    明白了 也就是编译的时候 类循环编译加载了 

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
发表回复
你还没有登录,请先 登录或 注册!