Setting up a basic skeletal mesh crashes my editor

anybody else having an issue where they cannot set their skeletalmeshes in c++?

UPROPERTY(EditAnywhere)
USkeletalMesh *mesh;

mesh = CreateDefaultSubobject<USkeletalMesh>(TEXT(“Mesh”));

this causes a crash! why??

bump please

I think what you are looking for is


USkeletalMeshComponent 

not


USkeletalMesh

.

1 Like

I figured it out im retarded lol