Armaan Bhati
  • Welcome
  • Projects
    • Bullet Train
    • Treasure Island
    • IPC City
    • Pocket Rocks
    • Battlepits
    • Light Weaver
    • Wilderwood Forest
    • Starship Enceladus
  • Level Design
    • Valhurst Manor Level Design
    • Level Design
  • Game Jams
  • Blog
  • Art
  • Contact

Using the ProceduralMeshComponent in C++ in Unreal Engine 4

4/17/2020

7 Comments

 


I spent hours trying to figure this out so I thought I should share my solution to help other who might be having the same problem.

If you are getting the following error when trying to include the "ProceduralMeshComponent.h" header file in your class, then here's how you fix it.

Error: "Cannot open file "ProceduralMeshComponent.h: No such file or directory"

Fix: Open your project folder>Source>[ProjectName]> Open "[ProjectName].Build.cs"

Add "ProceduralMeshComponent" to the end of the PublicDependancyModules like this:

<>PublicDependencyModuleNames.AddRange (new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay", "NavigationSystem", "AIModule", "ProceduralMeshComponent" });<>

After that, save the file and go to UE4>File>Refresh Project
​
Done!
You should now be able to use the ProceduralMeshComponent in C++


7 Comments

    Archives

    April 2020

    Categories

    All

    RSS Feed

Copyright © 2019