Web camera plugin

Same problem here and no amount of refreshing and regenerating VS files would fix it. Then I opened WebcameraPlugin.uproject in VS and found the Plugins section empty. Edited it to this:


{
	"FileVersion": 3,
	"EngineAssociation": [DON'T CHANGE ANYTHING HERE]
	"Category": "",
	"Description": "",
	"Modules": 
		{
			"Name": "WebcameraPlugin",
			"Type": "Runtime",
			"LoadingPhase": "Default"
		}
	],
	"Plugins": 
		{
			"Name": "Webcamera",
			"Enabled": true
		}
	]
}

The other compile errors in WebcameraPluginCharacter.cpp can be fixed like so:


//FirstPersonCameraComponent->AttachParent = GetCapsuleComponent();
becomes
FirstPersonCameraComponent->SetupAttachment(GetCapsuleComponent());


//Mesh1P->AttachParent = FirstPersonCameraComponent;
Mesh1P->SetupAttachment(FirstPersonCameraComponent);

//FP_Gun->AttachTo(Mesh1P, TEXT("GripPoint"), EAttachLocation::SnapToTargetIncludingScale, true);
FP_Gun->SetupAttachment(Mesh1P, TEXT("GripPoint"));


And I updated WebcameraPluginCharacter.cpp to add Webcamera:


using UnrealBuildTool;

public class WebcameraPlugin : ModuleRules
{
	public WebcameraPlugin(TargetInfo Target)
	{
		PublicDependencyModuleNames.AddRange(new string] { "Core", "CoreUObject", "Engine", "InputCore", "Webcamera" });
	}
}

All these changes results in a cleaner DebugGame build in VS and the demo starts and runs correctly in 4.14.3 built from source.