Hi! i’m new to coding in c++
Here my question. I have create 3 CreateDefaultSubobject but the StaticMesh is not show. What can i do to fix this
Thank you.
My Cpp
VRRoot = CreateDefaultSubobject<USceneComponent>(TEXT("VRRoot"));
VRRoot->SetupAttachment(GetRootComponent());
Camera = CreateDefaultSubobject<UCameraComponent>(TEXT("Camera"));
Camera->SetupAttachment(VRRoot);
DestinationMarker = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("DestinationMarker"));
DestinationMarker->SetupAttachment(GetRootComponent());
My h
UPROPERTY()
class UCameraComponent* Camera;
class USceneComponent* VRRoot;
UPROPERTY(VisibleAnywhere)
class UStaticMeshComponent* DestinationMarker;