add component unreal engine code example
Example: add component unreal engine
MyActor.c++
StaticMesh = CreateDefaultSubobject<UStaticMeshComponent>("Static Mesh");
MyActor.h
UPROPERTY(EditAnywhere, Category = "Components");
UStaticMeshComponent* BulletMesh;