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. Dismiss Notice

Resolved Unable to drag in prefab into Network Prefabs Lists

Discussion in 'Netcode for GameObjects' started by joseph114591452, Jul 5, 2023.

  1. joseph114591452

    joseph114591452

    Joined:
    Mar 14, 2020
    Posts:
    24
    Unity version: 2023.1.2f1
    Netcode for GameObjects: 1.5.1

    I'm unable to drag my prefab into the Network Prefabs Lists.
    I'm unable to select the prefab from circle selector (it doesn't show up).
    The prefab has a NetworkObject, ClientNetworkTransform, NetworkRigidbody component.

    Here is the Network Manager:
    upload_2023-7-5_1-23-3.png
     
  2. joseph114591452

    joseph114591452

    Joined:
    Mar 14, 2020
    Posts:
    24
    I've downgraded my Unity to 2022.3.4f1 and still doesn't work.

    Here is what my prefab looks like:
    upload_2023-7-5_1-58-25.png
     
  3. joseph114591452

    joseph114591452

    Joined:
    Mar 14, 2020
    Posts:
    24
    Ok I found the solution. You have to create a Network Prefabs List scriptable object, add your prefabs there and add that list to the Network Manager. There's a lot of outdated video tutorials and the docs should be written more clearly.
     
    LordDooms and SuperPox like this.
  4. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    426
    Hey @josephan2 , thaks for pointing that out. I forwarded your feedback to the documentation team so they can address it-
     
  5. jibinjohn777

    jibinjohn777

    Joined:
    May 15, 2023
    Posts:
    1
    folder > Create > Netcode > Network Prefabs List > Drag into Network Manager script
     
    Udr0524 and JJPena like this.