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.1k stars 430 forks source link

Multiplayer PlayMode Player Tags not exported/imported by Publisher Tools for a "Template" asset #2846

Open CodeSmile-0000011110110111 opened 3 months ago

CodeSmile-0000011110110111 commented 3 months ago

Description

I have created a "Template" asset for the Asset Store using the AS Publisher tool and unpacked that .unitypackage into a new project to test it. Side Note: Template assets are those that bundle the ProjectSettings folder and essentially replace the existing project's settings.

Under Project Settings => Multiplayer => Playmode the "Player Tags" list is empty after successfully importing the asset. The tags are defined in the source project.

Either the player tags are not exported by the AS publisher tool or they are not imported into the new project from a .unitypackage file.

Unfortunately, there is also no way to change these tags via editor script, at least not without resorting to reflection.

Environment

CodeSmile-0000011110110111 commented 3 months ago

Note: the same issue occurs with Multiplayer Roles settings. Here all the "Strip ... Components" flags and the list of custom components is not preserved when importing a "template" asset.

CodeSmile-0000011110110111 commented 3 months ago

As far as "MultiplayerManager.asset" is concerned: that asset is copied into the project, but for some reason its content isn't picked up or not displayed in Project Settings. Not even if I run ImportAsset on that asset.