Hello friends
I’m programming a plugin for livestreaming mocapdata to unreal. Now I’m trying to make my functions for connection blueprintable.
But I’m always getting some errors and I hope you can help me ?
here’s the code:
.h file
#pragma once
#include "CoreUObject.h"
#include <Client.h>
#include "ViconConnection.generated.h"
DECLARE_LOG_CATEGORY_EXTERN(LogViconConnection, Log, All);
UCLASS(Blueprintable)
class UViconConnection : public UObject
{
GENERATED_UCLASS_BODY()
public:
UFUNCTION(BlueprintCallable, Category = "ViconFunctions")
void connect(std::string hostaddress);
UFUNCTION(BlueprintCallable, Category = "ViconFunctions")
void disconnect();
std::string hostaddress;
private:
ViconDataStreamSDK::CPP::Client Client;
//DECLARE_LOG_CATEGORY_EXTERN(Datastream, Log, All);
};
and here are the errors I’m getting:
Error 2 error : In ViconConnection: Unrecognized type ‘std’
Error 3 error code: 2
Thank you for your help