Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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

3 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.

avatar image
0

Answer by icepick912 · Jan 25 at 02:52 AM

I had the same problem, caused by having a networked object as a child of my network manager. Unchild the network object and it worked fine after that.

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

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.

Follow this Question

Answers Answers and Comments

169 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 avatar image

Related Questions

Using Transform Component and selfmade interface in an Network Command ? 0 Answers

UNET | How to use network messages? 1 Answer

Implementing very flexible multiplayer (UNET) Weapon System? 0 Answers

Unity Photon doesn't Spawn Player 0 Answers

Augmented Reality Multiplayer 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges