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"

Using TargetBuildEnvironment.Unique causes Shader path issue and incorrect Content merging

I'm using  BuildEnvironment = TargetBuildEnvironment.Unique;

The reason for this is that I modify stack size and unless I use TargetBuildEnvironment.Unique I get this error:

 throw new BuildException("{0} modifies the value of {1}. This is not allowed, as {0} has build products in common with {2}.\nRemove the modified setting or change {0} to use a unique build environment by setting 'BuildEnvironment = TargetBuildEnvironment.Unique;' in the {3} constructor.", ThisTargetName, Field.Name, BaseTargetName, ThisRules.GetType().Name);

This causes me 2 issues, a solution to any would be much appreciated:

1) I have to move my game project folder in the game engine folder or the following line in ShaderCore.cpp fails:

 check(FPaths::DirectoryExists(RealShaderDirectory));

because FPlatformProcess::BaseDir() returns a different value when using TargetBuildEnvironment.Unique. I assume this happens because UBT changes the RootDirectory from the Engine directory to the project directory.

This can be kinda-fixed by moving the game project folder to the UnrealEngine root folder, but then this causes issue 2) below:

2) If I move my game project folder to the root UE engine folder my game Content gets messed up: it doesn't show under the "Game" content anymore: instead it gets pulled into "Engine Content" and I cannot even open it since it cannot finds any assets.

Any idea if what I'm trying to do with 2) is even possible? 

Any idea how to fix 1) or 2)?

Any idea how I can otherwise set stack size without having to set TargetBuildEnvironment.Unique?

Product Version: UE 4.21
Tags:
more ▼

asked Jan 08 '19 at 11:14 PM in Installation & Setup

avatar image

Roponator
1 1

(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