Announcement

Collapse
No announcement yet.

How do I properly import ProceduralMeshComponent to my project?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I properly import ProceduralMeshComponent to my project?

    I have been trying to generate terrain using ProceduralMeshComponent but when I try to include the header file it says
    > cannot open source file "ProceduralMeshComponent.h"
    The GENERATED_BODY() is also throwing an error saying
    > this declaration has no storage class or type specifier

    I have attached my build.cs and .uproject files. After updating these files I rescanned the project by right clicking on my project name and the clicking rescan solution.

    I have checked that the plugin for ProceduralMeshComponent is enabled.

    I am new to unreal and know what to try next.

    #2
    I think the issue is that rescan won't rebuild the project files. If you are building from engine source, run GenerateProjectFiles.bat in the root folder. If you are not I believe you do this in the file menu of the editor. I can't remember the exact name but it's something like "refresh visual studio project".

    Comment


      #3
      Here's a screenshot highlighting the menu item.
      Attached Files

      Comment


        #4
        Thank you, that solved my problem.

        Comment

        Working...
        X