Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    27
    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
     
    mc_fragezeichen likes this.
  2. joseph114591452

    joseph114591452

    Joined:
    Mar 14, 2020
    Posts:
    27
    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:
    27
    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.
     
  4. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

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

    jibinjohn777

    Joined:
    May 15, 2023
    Posts:
    2
    folder > Create > Netcode > Network Prefabs List > Drag into Network Manager script
     
  6. sacheera

    sacheera

    Joined:
    May 5, 2022
    Posts:
    1
    I'm facing the same issue no documentation has been updated yet. No tutorial also.
     
  7. C4LL3

    C4LL3

    Joined:
    Nov 2, 2023
    Posts:
    3
    Thanks for that, I also couldn't find about it on any tutorial.
     
  8. ranjithas35

    ranjithas35

    Joined:
    May 9, 2023
    Posts:
    1
    Thank you
     
  9. glowkeeper

    glowkeeper

    Joined:
    May 21, 2020
    Posts:
    4
    Thanks!