• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
2
Question by Emmsii · Oct 28, 2016 at 07:57 AM · unity 5errornetworkingmultiplayerspawning problems

'Spawn scene object not found 1' Error

I've been following Brackeys MultiplayerFPS tutorial and I've run into an error during Episode 12. For those of you who haven't seen the tutorial, he implements spawning weapon prefabs when the player connects to the server.

I'm able to test the game fine in the editor, the player can host a server and the weapon spawns in correctly with no errors. But when I build the game and try to connect to the host (built game = client, editor = host), I get errors in the built .exe window saying:

 Spawn scene object not found for 1
     > UnityEngine.Networking.NetworkIdentity.UNetStaticUpdate()
 Spawn scene object not found for 1

If I host the game in the built .exe and connect to it from the editor I get errors saying:

 NullReferenceException: Object reference not set to an instance of an object

My code is the exact same as in the tutorial, the only difference is the Unity version; I'm running v5.4.2f2.

I've done some Googling to see if others have had the same error, some people say to give the prefab a network identity and add it to the list of spawnable prefabs in the NetworkManager but it still behaves the same.

Any ideas?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image captaindaawesome · Nov 03, 2016 at 10:32 PM 0
Share

Wow, I ran into the same issue, but at the end of episode 11. I have yet to find a solution, but if I do I will post it here. Been searching for hours though, so I might give up. @Emmsii

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Beater2022 · Mar 11, 2017 at 03:56 PM

Hi there, hopefully this will work for you as it did for me, try removing the network identity of your prefab and then re-adding it again. I did this and the build works for hosting and joining as a client again.

Im still new to this so I dont really understand why this works but here is the link where I found out about it, so you can read that in more detail if it helps.

https://forum.unity3d.com/threads/spawn-scene-object-not-found-for-1.333122/ @Emmsii

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by jethrogillgren · May 14, 2018 at 01:22 PM

Just discovered that having any disabled Networked Scene Objects can cause this.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image S4UC1SS0N · Jul 07, 2018 at 08:53 PM 0
Share

Thank you for pointing this out, it seems to fix my pre-existing networked objects spawn error.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

168 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Using syncVar in networkManager 1 Answer

Unity [PUN] New Instantiated players cannot see previously instantiated players 0 Answers

Unet: Bullets only spawn only spawn on host, visible only on host 0 Answers

Photon ccu question 0 Answers

[UNET] Network Transform doesnt work for the host. On Client it works seemless. 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges