Hi i am new to Unreal, Can someone tell me why Visual Studio underlines “FPlatformFileManager” red in the following script:
// Fill out your copyright notice in the Description page of Project Settings.
#include “Kinect.h”
#include <iostream>
#include <windows.h>
//#include <fstream>
// Sets default values for this component’s properties
UKinect::UKinect()
{
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
// off to improve performance if you don’t need them.
//PrimaryComponentTick.bCanEverTick = true;
// ...
}
// Called when the game starts
void UKinect::BeginPlay()
{
Super::BeginPlay();
FPlatformProcess::CreateProc(TEXT("Count.exe"), nullptr, true, false, false, nullptr, 0, nullptr, nullptr);
IPlatformFile &FilePlatform = FPlatformFileManager::Get().GetPlatformFile();
// ...
}
// Called every frame
void UKinect::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
// ...
}