Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Visual Studio Error: Cannot open source file "ProceduralMeshComponent.h"

For some reason I'm getting this error when trying to include ProceduralMeshComponent.h.

Here is my Build.cs file. Any ideas?

 using UnrealBuildTool;
 public class MyProject3 : ModuleRules
     public MyProject3(TargetInfo Target)
         PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "ProceduralMeshComponent" });
         PrivateDependencyModuleNames.AddRange(new string[] { "ProceduralMeshComponent" });
         // 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

Product Version: UE 4.13
more ▼

asked Oct 13 '16 at 09:43 AM in C++ Programming

avatar image

318 30 45 48

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello Wilberolive,

From looking up a wiki post for using ProceduralMeshComponent in C++, it seems that you need to run Generate Project Files from right-clicking the project's .uproject file after adding this declaration so that Visual Studio can detect that you are looking to add that module.

You can find more information here: https://wiki.unrealengine.com/Procedural_Mesh_Component_in_C%2B%2B:Getting_Started

more ▼

answered Oct 14 '16 at 09:15 PM

avatar image JamesSwann95 Feb 22 '17 at 12:16 PM

Sorry for the late repsonse but. When I right click on my .uproject I don't have an option to re-generate files

avatar image Matthew J Feb 22 '17 at 04:32 PM

Hello JamesSwann95,

This is likely related to your .uproject files not being associated with the correct program. Do you get any other UE4 specific options when you right-click your .uproject such as Launch Game? If the file association is not correct, one of the solutions posted here should be able to assist you.

avatar image JamesSwann95 Feb 23 '17 at 10:53 AM

Worked perfectly

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question