That is my first try codding C++ in UE4. So I follow this tutorial I realised all properties but realise class method going with trouble. So even if I add method in public part and add BlueprintCallable parameter and some custom category I still can’t see this method in ue4 editor.
// AMyActor.h
#include "GameFramework/Actor.h"
#include "AMyActor.generated.h"
UCLASS()
class STUDY_API AAMyActor : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
AAMyActor();
// methods
UFUNCTION(BlueprintCallable, Category = Damage)
void CalculateValues();
};
// AMyActor.cpp
#include "Study.h"
#include "AMyActor.h"
// Sets default values
AAMyActor::AAMyActor()
{
}
void AAMyActor::CalculateValues() {
// some code ...
}