Nanite visualization ingame

Hi everyone.

I’m wondering is it possible to turn on the Nanite visualization ingame with a Blueprint or C++ script?

Hey there @dmiklic! To be able to use nanite visualization in a standalone game you’d need to edit the source directly. Basically none of the debug visualizers for nanite are included for packaged builds. They only operate properly in PIE. Most of them stem from the base command r.Nanite.Visualize but if you attempt to use any of them at runtime in standalone it will fail.

Thank you for the answer.

No problem! If you are trying to take a look at the visualizations while the game it running (usually for procedural assets) you can hit F8 while playing in editor and enable them in viewport like normal, the only caveat is that if you take control of the player again it’ll revert to game view.