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 = CreateDefaultSubobject<USphereComponent>(TEXT("SphereComponent"));
|
||||||
SphereComponent->SetSphereRadius(25.0f, true);
|
SphereComponent->SetSphereRadius(25.0f, true);
|
||||||
SphereComponent->SetCollisionEnabled(ECollisionEnabled::QueryAndProbe);
|
SphereComponent->SetCollisionEnabled(ECollisionEnabled::QueryAndProbe);
|
||||||
|
SetRootComponent(SphereComponent);
|
||||||
SphereComponent->SetupAttachment(RootComponent);
|
|
||||||
|
|
||||||
PointLightComponent = CreateDefaultSubobject<UPointLightComponent>(TEXT("PointLightComponent"));
|
PointLightComponent = CreateDefaultSubobject<UPointLightComponent>(TEXT("PointLightComponent"));
|
||||||
PointLightComponent->SetupAttachment(RootComponent);
|
PointLightComponent->SetupAttachment(RootComponent);
|
||||||
|
|
Loading…
Reference in New Issue