修复启动错误
This commit is contained in:
@@ -27,7 +27,7 @@ DynMaterial(nullptr), DynCalMaterial(nullptr)
|
||||
{
|
||||
// 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;
|
||||
|
||||
RootComponent = CreateDefaultSubobject<USceneComponent>(TEXT("Root"));
|
||||
StaticMeshComp = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("StaticMeshComponent"));
|
||||
StaticMeshComp->AttachToComponent(RootComponent,FAttachmentTransformRules::SnapToTargetIncludingScale);
|
||||
//RootComponent = StaticMeshComp;
|
||||
|
||||
Reference in New Issue
Block a user