com.unity.netcode.gameobjects icon indicating copy to clipboard operation
com.unity.netcode.gameobjects copied to clipboard

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

Open CodeSmile-0000011110110111 opened this issue 1 year ago • 2 comments

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

  • OS: Win 11
  • Unity Version: 6000.0.0b12
  • Netcode Version: 1.8.1, MPPM 1.0.0 (no preview)
  • AS Publish tools: 11.4.0

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.

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.