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"

DirectoryWatcher in no-editor development builds

(Note that I'm an UE noob, so any of what follows might be nonsense.)

Is there any way to use the DirectoryWatcher module in no-editor development builds?

Apparently DirectoryWatcher gets built as an editor module -- even though its sources are under Source/Developer (as opposed to Source/Editor), in Intermediate there's no UE4/Developer/DirectoryWatcher folder, only UE4Editor/Developer/DirectoryWatcher. This leads to file-not-found compile errors if I try to add "DirectoryWatcher" to PublicDependencyModuleNames in my project's Build.cs.

So, my questions are:

  • If DirWatcher sources are under Developer (not Editor), then why does it get built only into UE4Editor/Development (not UE4/Development)? Is this intentional, or more like a bug?

  • Am I right to think that this is controlled by Engine/Source/Runtime/Core/Core.Build.cs? In there, DirectoryWatcher is added as a module only if Target.bBuildEditor == true.

  • If I changed that (eg. if (Target.bBuildEditor == true) => if (Target.Configuration != UnrealTargetConfiguration.Shipping)), and recompiled the engine from source, would that turn DirectoryWatcher into a module that can be used in no-editor development builds?

  • Is there any way to do something similar without having to rebuild the engine from source? (Ideally also without copy-pasting the DirectoryWatcher source into a new plugin.)

  • In general, what's the exact relationship between the folders under Engine/Source vs the folders in Engine/Intermediate/Build/? In the former we have Developer, Editor, Runtime; in the latter we have UE4/Development, UE4/Shipping, UE4Editor/Development. Are there even any well-defined relationships, or is it just the Build.cs files controlling what goes where?

Product Version: UE 4.20
Tags:
more ▼

asked Oct 30 '18 at 05:52 AM in C++ Programming

avatar image

imre
1 1

(comments are locked)
10|2000 characters needed characters left

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