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"

"New C++ class" in plugin folder does not work as expected.

When trying to add a c++ class to a plugin, it gets added to the main game module instead.

The expected behaviour when adding a "New C++ class" when inside a plugin folder would be to add such class to the plugin's main module.

Steps to reproduce:

  • Activate "Show Plugin Content" under "View Options".

  • Navigate to a C++ plugin folder in the left navigation panel.

  • Right click inside the folder and select "New C++ Class"

  • Follow the wizard instructions.

The class is created in the main game module instead of the plugin.,

Product Version: UE 4.10
more ▼

asked Mar 08 '16 at 09:51 AM in C++ Programming

avatar image

47 4 6 9

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

2 answers: sort voted first

Hey ClaudioFreda-

This is actually working as expected. When you use the "New C++ Class" option through the editor it adds the new class to the project you are in. The built in plugin folders are not meant to be edited however if you are trying to add new files to a custom plugin the best way to do so is directly though Visual Studio inside the plugin folder. After adding the new files you will need to right-click the .uproject in the game folder and Generate Project Files for the new files to update with the project.


Doug Wilson

more ▼

answered Mar 08 '16 at 03:05 PM

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

Note that in more recent releases you can now select the plugin in the class creation wizard. (I'm on UE 4.14 - probably still an issue if you are locked into 4.10.)

more ▼

answered Feb 20 '17 at 11:51 PM

avatar image

21 1 1 3

(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