How to Proper Way To Pause A Game?

I am a Beginner at Unity.

I Want to Know How to Properly Pause the game
I’m using script (Time.timeScale = 0;) but when paused game the camera black I don’t know how to fix?
I’m using C Sharp script.

I just want to know a technique Or If you know Something else useful for this please inform me

You see in 1 picture camera working

when I paused game camera black you see 2 picture

When I resume game camera still black you see 3 picture

Thanks for Help

Time.timeScale does not stop the camera from rendering, this error is because you have either enabled a new panel that is all black or else you have edited the camera clipping planes. There are many other reasons for a camera to not render but Time.timeScale is not responsible for it.