Can anyone help please multiple Screen-loaded warnings suddenly appeared.

I seem to have done something and have no idea how to fix it.
I am getting multiple warnings from different assets saying “sceneLoaded’” problem. I have posted a screenshot below.

I have Googled it but all I could see what scripting threads.
I am rubbish at scripting. (I plan to learn, but as yet have no idea.)

What do I need to do to remedy this please. So I can continue with my project.

I really appreciate any help.

Do you have created a class that is called “SceneManager” ?
That would hide (overwrite) the default unity class called “SceneManager”.

Hello and thank you for the reply.
Im not sure what yo mean by a class? would that be a folder or empty object, or script?

I just did a search and in Hierarchy there is only 2 "scene_root entries.
So I checked in Project and there is one SceneManager script (I have posted it below.

No I haven’t created another one.

The problem seemed to start after I put a particle effect in. But I have checked an earlier save and its the same warnings.

I really appreciate any guidance.

The class is what is inside the script:
public class Classname : MonoBehaviour

The problem is that unity already has class / script called SceneManager.
If you have a script with the same name unity does not know it you mean your class or the unity class if you do

 SceneManager.LoadScene("OtherSceneName");

Two ways to go about this:

  • Do not use names of unity classes for your own classes.
  • Specify what version of “Scenemanager” you like to use for the specific calls

SceneManager.LoadScene(“OtherSceneName”);
has to be extended to
UnityEngine.SceneManagement.SceneManager.LoadScene(“OtherSceneName”);

that way unity knows that you mean the class that unity provides.

Thank you for the help. At least I know its repairable.

And I hear what you are saying, but I dont know how to go about it.
I just went into visual studio, and did a search for
SceneManager.LoadScene(“OtherSceneName”);
SceneManager.LoadScene

And couldnt find either in the script.

All I can find is
public class SceneManager : MonoBehaviour {
In line 6

Is this the line that I need to change?
And if so what to please?

Again thanks for the help.

You can just double click in on the entries in your error log and visual studio will open the script and point in the script where the the problem is.

Oh Thanks I did that and put UnityEngine.SceneManagement.
In front of two lines in the fungus warning, and it went gren (the little bar at the front.)
BUt then I cam to the next warning below. and have no idea what to do here…

Would it help if I just reinstalled all the warning assets?

// Make a note of the current scene. This will be used when restarting the game.
if (string.IsNullOrEmpty(saveManager.StartScene))
{
saveManager.StartScene = SceneManager.GetActiveScene().name;

Thanks anyway for trying to help.
I do appreciate it.

Ill just have to keep trying.