How to debug this

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on Fusion.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

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

jamie_xr
2022-05-18 16:26:56

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);    

Comments

Postograf
2022-05-22 00:34:44

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

jamie_xr
2022-05-24 09:27:15

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

sumitCutevil
2022-08-20 13:45:55

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

Back to top