Hi,
I’m trying to create a weapon class based on the Actor. I’ve created a USkeletalMeshComponent* and a USceneComponent* to get the forward direction for projectiles to be spawned.
When i try to access the methods of USkeletalMeshComponent in my .cpp, intellisence reports ‘No members available’
This is something that worked but is for some reason just not working today.
My .h
class ZOMBIETDTP_API AGun : public AActor
{
GENERATED_BODY()
UPROPERTY(VisibleDefaultsOnly, Category = "Mesh")
class USkeletalMeshComponent* GunMesh;
UPROPERTY(VisibleDefaultsOnly, Category = "Mesh")
class USceneComponent* MuzzleLocation;
My .cpp
GunMesh = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT("GunMesh"));
//GunMesh-> No members Available message on this
This has worked before, without any includes, apart from the .h for method declarations!!
Any help appreciated.
Thanks,