Forum rules - please read before posting.

Save/Load error

So... I've my own Save/Load Unity UI prefabs Menus. Linked to AC Menu Manager.
I've an issue related with "Sound" (but can't figure out more details):
When initializing the new loaded scene, I get the MissingReferenceException or NullReferenceException.

The error I get if I load a different scene:
https://pasteboard.co/J26yqyA.jpg

The error I get if I load a save on my same scene:
https://pasteboard.co/J26yJos.jpg

I'm not sure what is it all about...
I thought the "Sound" thing could have been related with the fact that I've a script that randomize sounds...
I've an object with my Random sounds script, an Audio Source (without clips) and the AC Sound script attached to it. Being just random sounds, I don't need those to be persistent during scene changing, so I don't have any "Remember" attached to them... But nevertheless I made an attempt removing all the scripts for "Random Sounds" and I still get that error, even if there's nothing playing "sounds" in my scene, rather than my Player(s) Prefab(s) (that shouldn't have anything wrong).

Any idea?

Comments

  • The error suggests you have a Sound component without an AudioSource also attached.

    You can find out which one by pasting the following into line 568 of Sound.cs:

    if (GetComponent <AudioSource> () == null) Debug.LogWarning ("No AudioSource for Sound " + name, this);
    
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.