Set Root Component in Pickup
This commit is contained in:
parent
480cfb0530
commit
62ac0e7496
|
@ -18,8 +18,7 @@ APickup::APickup()
|
|||
SphereComponent = CreateDefaultSubobject<USphereComponent>(TEXT("SphereComponent"));
|
||||
SphereComponent->SetSphereRadius(25.0f, true);
|
||||
SphereComponent->SetCollisionEnabled(ECollisionEnabled::QueryAndProbe);
|
||||
|
||||
SphereComponent->SetupAttachment(RootComponent);
|
||||
SetRootComponent(SphereComponent);
|
||||
|
||||
PointLightComponent = CreateDefaultSubobject<UPointLightComponent>(TEXT("PointLightComponent"));
|
||||
PointLightComponent->SetupAttachment(RootComponent);
|
||||
|
|
Loading…
Reference in New Issue