Adding a new code class derived from AnimInstance will cause the Visual Studio build to fail in a project based on the code Vehicle template. The build errors indicate that there are problems in the ShowFlags.h file:
WORKAROUND:
Add the line #include "EngineBaseTypes.h" to the ShowFlags.h file.
RESULTS:
The build fails.
EXPECTED:
The build succeeds.
1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(378): error C2065: 'EViewModeIndex' : undeclared identifier 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(378): error C2146: syntax error : missing ')' before identifier 'ViewModeIndex' 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(378): error C2182: 'ApplyViewMode' : illegal use of type 'void' 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(378): error C2491: 'ApplyViewMode' : definition of dllimport data not allowed 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(378): error C2059: syntax error : ')' 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(381): error C2061: syntax error : identifier 'EViewModeIndex' 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(387): error C2146: syntax error : missing ';' before identifier 'FindViewMode' 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(387): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(390): error C2146: syntax error : missing ')' before identifier 'ViewModeIndex' 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(390): error C2440: 'initializing' : cannot convert from 'int' to 'const TCHAR *' 1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(390): error C2059: syntax error : ')'
How does TextureRenderTarget2D get TArray<uint8> type data?
How to delete some elements correctly when deleting an array loop?
Why does the REMOVE method of map container remove elements have memory leaks?
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
How do I set a material as a post-processing material?
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Gameplay |
---|---|
Affects Versions | 4.5.1, 4.6, 4.7 |
Fix Commit | 2373654 |
---|
Created | Dec 1, 2014 |
---|---|
Resolved | Dec 2, 2014 |
Updated | Apr 27, 2018 |