修复启动错误

This commit is contained in:
2025-11-16 00:40:42 +08:00
parent 9f018feb7d
commit 917f9273e8
7 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -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;