Answers for "how to add component in unreal neigne"

2

add component unreal engine

MyActor.c++ 

StaticMesh = CreateDefaultSubobject<UStaticMeshComponent>("Static Mesh");

MyActor.h
UPROPERTY(EditAnywhere, Category = "Components");
UStaticMeshComponent* BulletMesh;
Posted by: Guest on May-08-2021

Browse Popular Code Answers by Language