x

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"

What is the recommended way to add new files to a plugin?

Important fact: I'm using Xcode 8.1 on OSX Sierra 10.12.1.

I'm building an editor plugin intended for game developers, and I've discovered the niceness of using the in-editor tools to create and add new files to projects. HOWEVER, there doesn't seem to be a way to add new C++ files to a plugin from within the editor.

Xcode doesn't really like manually adding files to projects as far as I can tell, given that the files are neither correctly formatted nor recognized by the build system (red file name in the project navigator), and I've had difficulty getting files to show up correctly using GenerateProjectFiles.sh.

I saw a post by one of the staff that mentioned manual adding of files in a way that made me wonder if there isn't a better option. Is manual adding + project regeneration the recommended solution for this scenario? Or is there something I'm missing?

Product Version: UE 4.13
Tags:
more ▼

asked Nov 04 '16 at 12:47 PM in C++ Programming

avatar image

Michael Burton
21 1 3

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

1 answer: sort voted first

Apparently the most reliable way is using the Add New->New C++ Class from the Content Browser, as long as you have a plugin that's properly set up and shows up as a target in the target module dropdown. Good to know.

more ▼

answered Nov 05 '16 at 12:40 AM

avatar image

Michael Burton
21 1 3

avatar image sergueik Nov 05 '16 at 08:34 PM

Unfortunately this doesn't work for engine plugins, really hope I can find a decent workflow for this.

(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