This is my code:
#pragma once
#include "BehaviorTree/BTTaskNode.h"
#include "GuideMoveToActorCPP.generated.h"
/**
*
*/
UCLASS()
class DREAMTOWNAI_API UGuideMoveToActorCPP : public UBTTaskNode
{
GENERATED_BODY()
public :
UPROPERTY(Export)
UBlackboardKeyType* TurnToActorKey;
UBlackboardKeyType* DestinationActorKey;
private:
float TangentLength;
float Velocity;
float SplineDistance;
float SplineLength;
float MoveTotalTime;
float SplineTimeStart;
float CurveMinTime;
float CurveMaxTime;
float XValue;
//float MoveTime(float SplineLength);
//FVector SecondPointTangent(FVector DirectionVector);
};
However, the key TurnToActorKey and TurnToActorKey don’t appear in the behavior tree.