How to debug this: [Fusion] Unknown [TypeId:00000002]

Options

This happens when I join a game in which a player has spawned an object via addressables.

It doesn't happen when not using addressables but there's no documentation, so I've no idea if i'm doing it correct or not.

My code:

if (playerPrefab == null)
{
   var prefab = await Addressables.LoadAssetAsync<GameObject>("Player");
   playerPrefab = prefab.GetComponent<NetworkObject>();
}

var playerObject = NetworkRunner.Spawn(playerPrefab, inputAuthority: NetworkRunner.LocalPlayer);


Answers

  • Postograf
    Options

    Maybe, this happen because playerPrefab don't located in "Networked Project Config" -> "Prefabs"

  • jamie_xr
    Options

    It's there, that's the first thing I checked

  • did yu solve this dont know how to download from assetbundle please any1 help