Broken Prefab Table?, Spawnable Network Objects Prefab Source showing Null

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.

Broken Prefab Table?, Spawnable Network Objects Prefab Source showing Null

OdoVR
2022-10-12 05:10:22

As title indicates, I'm suddenly experiencing an issue in my Unity project where my spawnable prefabs are not populating the Prefab Table and show as Null in the Prefab Source (Network Object).

I've tried removing and re-adding a new network object component to the prefab. When I click Reimport, nothing happens and if I reopen the prefab, it reverts to the Null source (see screen captures below).

I'm not seeing any errors.

I've also tried updating to latest version Fusion SDK 1.1.3 Nightly Build 594 with no luck.

Has anyone ever experienced a similar problem and if so, managed to resolve it?

Comments

OdoVR
2022-10-12 05:49:28

Nevermind, issue is resolved.

It was caused by a missing reference in Addressables Groups, which was tripping up Fusion.

.48

Unable to create prefab asset for Assets/Photon/Fusion/Scripts/Prototyping/Prefabs/BallPrototype.prefab: System.NullReferenceException: Object reference not set to an instance of an object    
  at UnityEditor.AddressableAssets.Settings.AddressableAssetGroup.get_entries () [0x00001] in -\Library\PackageCache\[email protected]\Editor\Settings\AddressableAssetGroup.cs:322     
  at UnityEditor.AddressableAssets.Settings.AddressableAssetGroup.GatherAllAssets     
UnityEditor.AssetDatabase:ImportAsset (string)    
Fusion.Editor.NetworkProjectConfigUtilities:SaveGlobalConfig (Fusion.NetworkProjectConfig) (at Assets/Photon/Fusion/Scripts/Editor/Fusion.Editor.cs:10161)    
Fusion.Editor.NetworkProjectConfigUtilities:SaveGlobalConfig () (at Assets/Photon/Fusion/Scripts/Editor/Fusion.Editor.cs:10143)    
Fusion.Editor.NetworkProjectConfigUtilities:RebuildPrefabTable () (at Assets/Photon/Fusion/Scripts/Editor/Fusion.Editor.cs:10139)    
Fusion.Editor.NetworkProjectConfigImporterEditor:OnInspectorGUI () (at Assets/Photon/Fusion/Scripts/Editor/NetworkProjectConfigImporterEditor.cs:37)    
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)    
Back to top