INetworkSerializable creating problems even thou game is running

i have a problem with my INetworkSerializable

i want to pass network varible of basickly a transform and i did it lke that

public class ShotBase : NetworkBehaviour, IDamager
{

public struct NetworkTransformROT_SCL_POS : INetworkSerializable
{
public Vector3 Position;
public Quaternion Rotation;
public Vector3 Scale;
public void FromTransform(Transform transform)
{
Position = transform.position;
Rotation = transform.rotation;
Scale = transform.localScale;
}
public void ApplyToTransform(Transform transform)
{
transform.position = Position;
transform.rotation = Rotation;
transform.localScale = Scale;
}

public void NetworkSerialize(BufferSerializer serializer) where T : IReaderWriter
{
serializer.SerializeValue(ref Position);
/ serializer.SerializeValue(ref Rotation);
serializer.SerializeValue(ref Scale);
}
}

public NetworkVariable<NetworkTransformROT_SCL_POS> PositioningEmitter = new NetworkVariable<NetworkTransformROT_SCL_POS>(default,
NetworkVariableReadPermission.Owner, NetworkVariableWritePermission.Server);

public virtual void Start()
{

FireCommanded_net = false;
//NOT IMPLEMENTED
//Use InitialSet as default Start/Constructor unless external dependency requires Start()
print("start " + transform.localScale + this.name);
Debug.Log(“22”);
PositioningEmitter = new NetworkVariable<NetworkTransformROT_SCL_POS>();
PositioningEmitter.Value.FromTransform(this.transform);

Debug.Log(“11”);
}

and later on stuff like that:

PositioningEmitter = new NetworkVariable<NetworkTransformROT_SCL_POS>();
PositioningEmitter.Value.FromTransform(this.transform);

the game is running but its not working right and i cant oper shotlaser scripts or any other scripts in the inspector like there is an error -

in the console on edit mode i see this:

ArgumentException: Invalid generic arguments
Parameter name: typeArguments
System.Reflection.RuntimeMethodInfo.MakeGenericMethod (System.Type[ ] methodInstantiation) (at <0de99929796b4095b47389e59e446fbd>:0)
Unity.Netcode.Editor.NetworkBehaviourEditor.RenderNetworkVariable (System.Int32 index) (at ./Library/PackageCache/com.unity.netcode.gameobjects@1.4.0/Editor/NetworkBehaviourEditor.cs:85)
Unity.Netcode.Editor.NetworkBehaviourEditor.OnInspectorGUI () (at ./Library/PackageCache/com.unity.netcode.gameobjects@1.4.0/Editor/NetworkBehaviourEditor.cs:236)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass72_0.b__0 () (at :0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

not sure why and how to dix it - basicly i just wanted to have the transorm(pos scale and rotaion of an emitter to be synced)

thx!

Hi, I see you’re using NGO 1.4.0. Can you try updating to the latest version first?

no place for upgrade to 1.5.1 – ok idid it by hand: com.unity.netcode.gameobjects

not sure it its connected but after i updated to 15.1 and did somethings i got this error - new one that i havent got a clue how to handle -
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 Unity.Netcode.Editor.CodeGen.NetworkBehaviourILPP.<>c__DisplayClass7_0.b__1(TypeDefinition b)|| 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 Unity.Netcode.Editor.CodeGen.NetworkBehaviourILPP.<>c__DisplayClass7_0.b__1(TypeDefinition b)|| at System.Collections.Generic.List1.ForEach(Action1 action)|| at Unity.Netcode.Editor.CodeGen.NetworkBehaviourILPP.Process(ICompiledAssembly compiledAssembly)

Assembly ‘Library/ScriptAssemblies/Assembly-CSharp-Editor.dll’ will not be loaded due to errors:
Unable to resolve reference ‘Assembly-CSharp’. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.

OK - HAVE NO IDEA WHAT JUST HAPPEND - I THINK THE SYSTEM ITSELF HAS BUGS - THIS ELMENT SHOULD HAVE NETWORKOBJECT AND TRANSORM COMPNENENTS BUT IT SEEMS BUGED - ITHIK ILL REVERT BACK TO 1.4.1 MAYBE THIS WILL HELP

-----------OK FIXED - 1.51 US BUGED