Can't change viewmodes in packaged build (not allowed on consoles by default)
I'm using UE 4.14.1 (source) and can't seem to use the any of the viewmodes in a packaged build (Unlit, Wireframe, Shadercomplexity, etc...). All the Viewmodes work in the editor but in a packaged build when I type in the command "viewmode Unlit" I get the console message:
"Debug viewmodes not allowed on consoles by default. See AllowDebugViewmodes()."
Unfortunately there isn't any documentation for AllowDebugViewmodes() and there isn't any options to change it in the Project Settings or Editor Preferences. I've tried it with Build Configuration set to Debug, Development, and Shipping. I've also enable "Include Debug Files" in the Projects Settings.
I'm trying to use the viewmodes to troubleshoot some frame drops for Linux build. Any help would be greatly appreciated.
From looking up the function itself in my source build, which can be found in ShaderCore.cpp, it seems that you need to set something in an .ini file for this to work. The following comment is in that function's code:
Are you packaging for Linux when you get this message or are you trying to package to a console? If it's for Linux then this may be a bug but I'll need to ask someone about the intended functionality.
answered Jan 06 '17 at 03:51 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here