in unet how to judge is in onlinescene or in offlinescene

in unet how to judge is in onlinescene or in offlinescene

And:

Use GetSceneByName with the name of the scene you set as online scene in your NetworkManager. It’ll return a Scene reference, so check if “isValid” is true for that scene. If it’s true, the online scene is currently loaded.

The same can be done for the offline scene.