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"

Project compiles in XCode, but won't save changes when exiting and returning to UE4 editor.

I am trying to create a C++ class that will give me access to functions and variables via blueprints. However I don't seem to be able to make my changes to the editor persistent. My steps are as follows (I am running a Mac with El Capitan and v 4.9.2 of the editor):

  1. In UE4 Editor, add a new C++ Class

  2. Open the XCode project that is automatically generated

  3. Fill in my C++ code in .h and .cpp files

  4. Compile using the profile for (MyProjectName)Editor - mac

  5. Compile succeeded

  6. Return to UE4 editor and I can see the variables I created in my C++ file when I create a new blueprint based on that class.

However, the problem is that when I save my project, then quit and reopen it, none of the variables or functions I created are valid and I get errors (in the UE4 editor). Is there a step I'm missing here to make the changes permanent/persistent?

Product Version: UE 4.9
Tags:
more ▼

asked Jun 06 '16 at 04:16 AM in C++ Programming

avatar image

nati8boy
20 4 7 10

avatar image nati8boy Jun 07 '16 at 01:49 PM

Okay. Found the fix. Go to the menu and choose "Product > Build for > profiling" and....voila! It will compile your code and ensure that all of your changes are persistent for the next time that you open your project in the editor.

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

0 answers: sort voted first
Be the first one to answer this question
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