sphere->SetCollisionProfileName(TEXT("BlockAll"));
springArmComponent->bEnableCameraLag = true; //不会让相机像个木棍一样跟随着物体,会像绳子一样,从物体放甩动,先动物体再动Camera。
springArmComponent->CameraLagSpeed = 3;//绳子甩动后,Camera跟随Actor的速度
static ConstructorHelpers::FObjectFinder<UMaterialInterface> flyMat(PATH);
if (flyMat.Succeeded()) {
PlaneMesh->SetMaterial(0, flyMat.Object);
}
ConstructorHelpers只能用在构造函数内
不在构造函数内就用LoadObject