0

I am using Unreal 4.18 and Visual Studio 2017. Using certain class like UShapeComponent, UBoxComponent, USphereComponent gives identifier is undefined error while likes of USceneComponent, UStaticMeshComponent works just fine. What's wrong?

Here is my code:

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "MyActor.generated.h"

UCLASS()
class UNREALTUROIAL_API AMyActor : public AActor
{
GENERATED_BODY()

 public:    
// Sets default values for this actor's properties
AMyActor();

 protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;

 public:    
// Called every frame
virtual void Tick(float DeltaTime) override;


UPROPERTY(EditAnywhere)
    UStaticMeshComponent* PickUpMesh;

UPROPERTY(EditAnywhere)

    UShapeComponent* PickUpBox;
UPROPERTY(EditAnywhere)
    USceneComponent* PickUpRoot;




};
Imran Sikder
  • 63
  • 13

0 Answers0