UnityTechnologies / GalacticKittens

Get started making multiplayer games with Netcode for GameObjects
https://unity.com/products/netcode
Other
196 stars 56 forks source link

Unity.Netcode.Editor.CodeGen.NetworkBehaviourILPP: (0,0): error - System.NullReferenceException: Object reference not set to an instance of an object.| at #11

Closed jzyong closed 11 months ago

jzyong commented 1 year ago

Unity.Netcode.Editor.CodeGen.NetworkBehaviourILPP: (0,0): error - System.NullReferenceException: Object reference not set to an instance of an object.| at Unity.Netcode.Editor.CodeGen.NetworkBehaviourILPP.GenerateVariableInitialization(TypeDefinition type)| at Unity.Netcode.Editor.CodeGen.NetworkBehaviourILPP.GenerateVariableInitialization(TypeDefinition type)| at Unity.Netcode.Editor.CodeGen.NetworkBehaviourILPP.ProcessNetworkBehaviour(TypeDefinition typeDefinition, String[] assemblyDefines)| at System.Collections.Generic.List1.ForEach(Action1 action)| at Unity.Netcode.Editor.CodeGen.NetworkBehaviourILPP.Process(ICompiledAssembly compiledAssembly) at Unity.Netcode.Editor.CodeGen.NetworkBehaviourILPP.GenerateVariableInitialization(TypeDefinition type)| at Unity.Netcode.Editor.CodeGen.NetworkBehaviourILPP.GenerateVariableInitialization(TypeDefinition type)| at Unity.Netcode.Editor.CodeGen.NetworkBehaviourILPP.ProcessNetworkBehaviour(TypeDefinition typeDefinition, String[] assemblyDefines)| at System.Collections.Generic.List1.ForEach(Action1 action)| at Unity.Netcode.Editor.CodeGen.NetworkBehaviourILPP.Process(ICompiledAssembly compiledAssembly)

DiogoCunha-Meta commented 11 months ago

Any news about this?

DiogoCunha-Meta commented 11 months ago

I think I fixed it by updating the UnityNetCode package

emgamedev-unity3d commented 11 months ago

Hello,

I apologize for not replying sooner, but ATM I'm the only one maintaining this sample. This was an old error that was reported to the NGO team and fixed in ver. 1.5.2 of the SDK. So in the end you did the right call.