• 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 /
avatar image
1
Question by KarrenJ1988 · Aug 08, 2012 at 10:09 AM · networkingscenestartlogin

Networking, Scene dependent?

I'm tryin' to wrap my head around the multiplayer concept, I have a login and ship selection screen, and then when selected, it loads the next scene, which is an ongoing scene for the server, that people are supposed to be able to join. But I'm having a problem, if the host is started, and in the battle scene, when the player then connects to the login scene, it then loads the models(player prefabs) in the login scene, where they can't be, and they fall through the world. After the client picks a boat for the next scene, it is spawned, but the server and previous clients won't show, since it already loaded them for the new client, but threw them through the world in the login scene after connection was made.

How do I only load the things on a scene by scene dependent basic?

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Benproductions1 · Aug 08, 2012 at 11:02 AM

What I usually do is not to send the information when the user connects and is loading the scene, but when the user has loaded the scene and has told the server it has done so through an RPC, the server then sends the information it should to the client and nothing falls through the ground... btw why would anything fall through the ground? Even on a client based networking solution the positions are only calculated by the owner of the object and estimated/corrected by all others.

Hope this helped Benproductions1

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 KarrenJ1988 · Aug 08, 2012 at 02:51 PM 0
Share

Since it loads the location of the other players, even though they are in a nother scene, in the scene the new client is, there isn't a ground.

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

8 People are following this question.

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

Related Questions

Android unet rendering issues (unity 5.5.2) 0 Answers

How does photon interact with scenes? 0 Answers

Network load scene 0 Answers

How to sync a ball, where two players kick it in turns? (Multiplayer game using UNET) 0 Answers

Unity networking, access online scenes variable in network manager 2 Answers

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