Hi, i’m trying to create a blueprint native event with array of vector as input, everything is fine when Function only has BlueprintCallable property,
but after adding UFUCTION(BlueprintNativeEvent, Blueprintcallable, category = “Temp”)
cant compile the code.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "EnemyCharacter.generated.h"
UCLASS()
class SINCEREMEN_API AEnemyCharacter : public ACharacter
{
GENERATED_BODY()
public:
// Sets default values for this character's properties
AEnemyCharacter();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
// Called to bind functionality to input
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
virtual void OnConstruction(const FTransform& Transform) override;
UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, category = "Enemy")
void TestFucntion(TArray<FVector> InputValues);
and this is error list:
error C2511: 'void AEnemyCharacter::TestFucntion(const TArray<FVector,FDefaultAllocator> &)': overloaded member function not found in 'AEnemyCharacter'
note: see declaration of 'AEnemyCharacter'
error C2352: 'UObject::FindFunctionChecked': illegal call of non-static member function
note: see declaration of 'UObject::FindFunctionChecked'