Any ideas on what’s causing this?
Edit: Having Entity field on ICommandData causes this, I don’t know if this is intended or a bug
InvalidOperationException: COMMAND_READ_PACKED is not a valid fragment for the given template
Unity.NetCode.Editor.GhostCodeGen.GenerateFragment (System.String fragment, System.Collections.Generic.Dictionary`2[TKey,TValue] replacements, Unity.NetCode.Editor.GhostCodeGen target, System.String targetFragment, System.String extraIndent, System.Boolean allowMissingFragment) (at Library/PackageCache/com.unity.netcode@0.6.0-preview.7/Editor/GhostCodeGen.cs:293)
Unity.NetCode.Editor.CommandGenerator.GenerateFields (Unity.NetCode.Editor.CodeGenerator+Context context, System.String parent) (at Library/PackageCache/com.unity.netcode@0.6.0-preview.7/Editor/CodeGenerator/CommandGenerator.cs:85)
Unity.NetCode.Editor.CodeGenerator.<GenerateCommand>g__BuildGenerator|6_0 (Unity.NetCode.Editor.CodeGenerator+Context ctx, Unity.NetCode.Editor.TypeInformation typeInfo, Unity.NetCode.Editor.CommandGenerator parentGenerator, Unity.NetCode.Editor.CodeGenerator+<>c__DisplayClass6_0& ) (at Library/PackageCache/com.unity.netcode@0.6.0-preview.7/Editor/CodeGenerator/CodeGenerator.cs:213)
Unity.NetCode.Editor.CodeGenerator.<GenerateCommand>g__BuildGenerator|6_0 (Unity.NetCode.Editor.CodeGenerator+Context ctx, Unity.NetCode.Editor.TypeInformation typeInfo, Unity.NetCode.Editor.CommandGenerator parentGenerator, Unity.NetCode.Editor.CodeGenerator+<>c__DisplayClass6_0& ) (at Library/PackageCache/com.unity.netcode@0.6.0-preview.7/Editor/CodeGenerator/CodeGenerator.cs:220)
Unity.NetCode.Editor.CodeGenerator.GenerateCommand (Unity.NetCode.Editor.CodeGenerator+Context context, Mono.Cecil.TypeDefinition type) (at Library/PackageCache/com.unity.netcode@0.6.0-preview.7/Editor/CodeGenerator/CodeGenerator.cs:227)
Unity.NetCode.Editor.CodeGenerator.Generate (System.String outputFolder, System.String assemblyGeneratedName, System.String assemblyName, System.Boolean isRuntimeAssembly, System.Collections.Generic.IEnumerable`1[T] validTypes, System.Collections.Generic.IEnumerable`1[T] commandTypes, System.Collections.Generic.Dictionary`2[TKey,TValue] codeGenCache) (at Library/PackageCache/com.unity.netcode@0.6.0-preview.7/Editor/CodeGenerator/CodeGenerator.cs:38)
Unity.NetCode.Editor.GhostCompiler.GhostCodeGeneratorPostProcessor.Generate (Unity.NetCode.Editor.GhostCompiler.CompilationContext context) (at Library/PackageCache/com.unity.netcode@0.6.0-preview.7/Editor/GhostCompiler/GhostCodeGeneratorPostProcessor.cs:96)
Unity.NetCode.Editor.GhostCompiler.GhostCompiler.Generate (System.Collections.Generic.IEnumerable`1[T] assemblyEnumerable, Unity.NetCode.Editor.GhostCompiler.GhostCompilerOptions options) (at Library/PackageCache/com.unity.netcode@0.6.0-preview.7/Editor/GhostCompiler/GhostCompiler.cs:101)
UnityEngine.Debug:LogException(Exception)
Unity.NetCode.Editor.GhostCompiler.GhostCompiler:Generate(IEnumerable`1, GhostCompilerOptions) (at Library/PackageCache/com.unity.netcode@0.6.0-preview.7/Editor/GhostCompiler/GhostCompiler.cs:117)
Unity.NetCode.Editor.GhostCompiler.GhostCompilerService:CompileAssemblies(IEnumerable`1, List`1) (at Library/PackageCache/com.unity.netcode@0.6.0-preview.7/Editor/GhostCompiler/GhostCompilerService.cs:472)
Unity.NetCode.Editor.GhostCompiler.GhostCompilerService:RegenerateAllChanges() (at Library/PackageCache/com.unity.netcode@0.6.0-preview.7/Editor/GhostCompiler/GhostCompilerService.cs:459)
Unity.NetCode.Editor.GhostCompiler.GhostCompilerService:OnUpdate() (at Library/PackageCache/com.unity.netcode@0.6.0-preview.7/Editor/GhostCompiler/GhostCompilerService.cs:408)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()