Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by Dust-Cloud · Jan 09, 2015 at 10:06 AM · terrainnetworknetworkviewconnect

How do you connect two existing networkviews?

I am creating a terrain system where the client spawns pieces as they become visible(have a large world). The terrain is somewhat editable by by players so I want to do some rpc calls to make it work. How do i have the terrain piece on the client connect to the server counterpart(alwase existing). I have a terrainmanager object that will be connected to server counterpart that could be used to initialize the terrain and setup the connection.(I could use the TerrainManager to do all the communicating with the server about changes but that would be overly complicated and not a good solution)

I need the terrain to spawn as quickly as possible and only on the one client so Network.Instantiate does't seem like it would work.

tldr. I need to connect a new piece of terrain spawned on the client when it become visible to an existing piece on the server.

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 NirielNabokov · Jan 09, 2015 at 12:38 PM

Two NetworkView components are connected if and only if they share the same NetworkViewID. The server knows the NetworkViewID of everything, so it needs to send it to the client who requests it. That means that the Server and the Client need to already have a way to communicate, so they must already have a pre-connected NetworkView for that.

Comment
Add comment · Show 3 · 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 NirielNabokov · Jan 10, 2015 at 03:08 PM 0
Share

Completely changed my answer. The docs were not clear so I thought we had to buffer NetworkInstantiate, but actually no.

avatar image Dust-Cloud · Jan 13, 2015 at 06:49 PM 0
Share

Thanks,So I should be able to have the terrain manger to have a Networkview so that it can set up the connection for all the subsections of the terrain as needed. Will try that.

avatar image NirielNabokov · Jan 16, 2015 at 12:21 PM 0
Share

Have you had any success with it?

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

[Network] Authorative Server for MMO 0 Answers

Network Connect to self after initializing server 3 Answers

How to implement a Room Mode Multiplayer Game code structure. 1 Answer

Scriptable Objects in networks. 0 Answers

Synchronize different prefab material over the network? 0 Answers


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