Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
  4. Join us on Thursday, September 29, for a day with Unity's SRP teams here on the forum or on Reddit, and discuss topics around URP, HDRP, and the Scriptable Render Pipeline in general.
    Dismiss Notice

Does Netcode for GameObjects support for cross-project connection?

Discussion in 'Netcode for GameObjects' started by ysleungrockman, Sep 21, 2022.

  1. ysleungrockman

    ysleungrockman

    Joined:
    Mar 16, 2014
    Posts:
    31
    I am currently migrating an old project (which used Unity 2017.1.1 before) to Unity 2021. In the project, there is one function that it will connect to a LAN server (an app from a different Unity project, through UNET), and the LAN server will send messages in JSON text to command each device connected to carry what action. When I tried to migrate it using Netcode for GameObjects, I made a message handler which will send unnamed message for both client and server and put them on a NetworkObject prefab. The server used StartHost() (so the object will be spawned) and the client connected by using StartClient(). However, when I tested it, the client doesn't seem to connect and there was no object spawned (for the server, the object did spawn though). My question is, does Netcode for GameObjects support this kind of cross-project connection? Or was I just missing something?
     
  2. ysleungrockman

    ysleungrockman

    Joined:
    Mar 16, 2014
    Posts:
    31
    Sorry but can anyone at least tell me if cross-project/multi-project connection is possible or not? I really need an answer.
     
  3. ysleungrockman

    ysleungrockman

    Joined:
    Mar 16, 2014
    Posts:
    31
    Why am I getting ignored? I just want an answer...
     
unityunity