调整细节

This commit is contained in:
zhangqing
2025-12-08 18:24:10 +08:00
parent dd16f0123a
commit e647723a7a
5 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ DynMaterial(nullptr), DynCalMaterial(nullptr)
PrimaryActorTick.bCanEverTick = true;
RootComponent = CreateDefaultSubobject<USceneComponent>(TEXT("Root"));
StaticMeshComp = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("StaticMeshComponent"));
StaticMeshComp->AttachToComponent(RootComponent,FAttachmentTransformRules::SnapToTargetIncludingScale);
//StaticMeshComp->AttachToComponent(RootComponent,FAttachmentTransformRules::SnapToTargetIncludingScale);
//RootComponent = StaticMeshComp;
}
void AIronBlock::PostInitProperties()