I have no idea whats wrong. Just cant compile…
“Error 1 error : In BluePrintHelper: Function parameter: ‘rotator’ conflicts with struct defined in ‘Object’”
BluePrintHelper.h
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "EdGraph/EdGraphNode.h"
#include "UnrealMathUtility.h"
#include "BluePrintHelper.generated.h"
/**
*
*/
UCLASS()
class UBluePrintHelper : public UEdGraphNode
{
GENERATED_UCLASS_BODY()
UFUNCTION(BlueprintCallable, Category = "FRotator")
FRotator MyFancyFunction(FRotator rotator);
};
BluePrintHelper.cpp
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "TOD.h"
#include "UnrealMathUtility.h"
#include "BluePrintHelper.h"
UBluePrintHelper::UBluePrintHelper(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
}
FRotator UBluePrintHelper::MyFancyFunction(FRotator rotator) {
FRotator copy = rotator.GetDenormalized();
return copy;
}