Make Time.timeScale not effect pause menu?

I know, I know this question has been asked a million times…
but i’m still confused and not getting a great answer here, what i’m trying to do is make it so when I pause my game (which changes time.timeScale) I would like the time to NOT effect my actual pause menu.
How exactly is this achievable?
I’m still confused and haven’t gotten any 100% answers. My apologies if there’s a good thread that I’m missing, but if I did can someone point me in that direction? Thanks.

You could create your own deltatime based of realtime:

private var LastFrame : float;
public var deltaTime : float;

function Update() {
     var CurrentFrame : float = Time.realtimeSinceStartup;
     deltaTime = CurrentFrame - LastFrame;
     LastFrame = CurrentFrame;
}

Easily converted to C#:

private float LastFrame;
public float deltaTime;
 
void Update() {
     float CurrentFrame = Time.realtimeSinceStartup;
     deltaTime = CurrentFrame - LastFrame;
     LastFrame = CurrentFrame;
}