Turn off/on Rendering

Hi,

We’re trying to turn off/on rendering in code, exactly the same way ‘show rendering’ does from the Console. Can you point us in the right direction please (I’m not having much luck finding where the Console does it in code).

Cheers,

Mark

Search for EngineShowFlags.Rendering. All show commands toggle showflags which are defined in ShowFlagValues.inl. The macros there can be accessed in the ViewFamily.EngineShowFlags

Hi,

We think this post contains useful information which we would like to share with our public UE4 community. With your approval, we would like to make a copy of this post on the public AnswerHub which includes the discussion but strips out your username and company name. Please let us know if you are okay with this.

Thanks!

Hi,

Thanks for the info. I actually found ‘UGameViewportClient::bDisableWorldRendering’ in the end too, which seems to do the job.

Thanks again,

Mark

1 Like

Please do, also any other posts I’ve made if it would be helpful. We’ve announced our product now, so all the cloak and dagger is no longer necessary.