Unity-Technologies / com.unity.netcode.gameobjects

Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.
MIT License
2.13k stars 433 forks source link

Doesnt work Custom Scene Management in new versions? #2669

Open mydavlet opened 1 year ago

mydavlet commented 1 year ago

Hello.

What i do in older versions without network Prefabs List

In-Scene Placed NetworkObject Registration Steps:

It doesnt work in new versions because i cant drag object from scene to prefab list. I can drag prefab but it's doesnt work. Sorry for my bag english friends!

i use this help but it work for versions without prefab list https://docs-multiplayer.unity3d.com/netcode/current/basics/scenemanagement/custom-management/#docusaurus_skipToContent_fallback

NoelStephensUnity commented 1 year ago

@mydavlet You need to either create a unique network prefab list or add your newly created network prefab to the DefaultNetworkPrefab list typically located at the root of the Assets folder.

image

If you don't see the DefaultNetworkPrefab asset, make sure your Project Settings->Netcode for GameObjects->Generate Default Network Prefabs List is checked: image

If you prefer to make your own network prefab list you can right click in any folder and select Create->Netcode->Network Prefab List. image

Once you have your Network Prefab List asset (default or your own), then editing it is exactly the same as it was when it was all contained within the NetworkManager. Also make sure the prefab list containing the override is added to the NetworkManager-> Network Prefabs Lists.

That should get you running again with prefab overrides.
šŸ‘

mydavlet commented 1 year ago

We cant add to prefab list objects from scene. We can add only prefabs. Anyway i go to Mirror Solution after that update. My projects didnt works after Update...(