Download

Why can't I include certain files?

I’m working with Unreal Engine 4.14.3 and trying to use Voice Capture by following guides and this youtube clip https://www.youtube.com/watch?v=nMNou_FEBx0

My problem is that despite having edited the .ini files and added public dependencies to the *.Build.cs file I still cannot include Voice.h and OnlineSubsystemUtils. Any idea why?


using UnrealBuildTool;

public class CPractice : ModuleRules
{
	public CPractice(TargetInfo Target)
	{
		PublicDependencyModuleNames.AddRange(new string] { "Core", "CoreUObject", "Engine", "InputCore", "OnlineSubsystem", "OnlineSubsystemUtils", "Voice" });
        //PublicDependencyModuleNames.AddRange(new string] { "Core", "CoreUObject", "Engine", "InputCore" });

        PrivateDependencyModuleNames.AddRange(new string] {  });

		// Uncomment if you are using Slate UI
		// PrivateDependencyModuleNames.AddRange(new string] { "Slate", "SlateCore" });
		
		// Uncomment if you are using online features
		// PrivateDependencyModuleNames.Add("OnlineSubsystem");

		// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
	}
}

My actor header looks like this:


#pragma once

#include "GameFramework/Actor.h"
#include "VoicePackage.h"
#include "Voice.h"
#include "OnlineSubsystemUtils.h"
#include "Sound/SoundWaveProcedural.h"

#include "MyActor.generated.h"

What do you mean you ‘can’t include it?’
Do you get an error message?