I have a boilerplated class, a subclass of Character class and I have added two UPROPERTY statements to it. However, it is causing my editor to crash. What is happening is that if I keep the two ‘UPROPERTY’ statements in code, and hit compile in UE Editor, the editor crashes. Now it won’t load the project again, and would crash every time after 70% loading is done. I’ve searched the forums, but haven’t found a solution. I am using 4.7.6. Please help!
#pragma once
#include "GameFramework/Character.h"
#include ".generated.h"
UCLASS()
class GOLDENCOOKIE_API ANPC : public ACharacter
{
GENERATED_BODY()
public:
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Collision) TSubobjectPtr<class USphereComponent> ProxSphere;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = NPCMessage) FString NpcMessage;
// Sets default values for this character's properties
ANPC();
// Called when the game starts or when spawned
virtual void BeginPlay() override;
// Called every frame
virtual void Tick( float DeltaSeconds ) override;
// Called to bind functionality to input
virtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) override;
};