ERROR => InvalidOperationException: Sequence contains no matching element

Options
hello

this error show up every time i compile the bolt

InvalidOperationException: Sequence contains no matching element
System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) (at :0)
Bolt.Compiler.CodeGenerator.FindStruct (System.Guid guid) (at <49db93d91caa465c9a68379fa91d5ff0>:0)
Bolt.Compiler.PropertyDecoratorStruct.get_Object () (at <49db93d91caa465c9a68379fa91d5ff0>:0)
Bolt.Compiler.PropertyDecoratorStruct.get_RequiredObjects () (at <49db93d91caa465c9a68379fa91d5ff0>:0)
Bolt.Compiler.PropertyDecoratorArray.get_RequiredObjects () (at <49db93d91caa465c9a68379fa91d5ff0>:0)
Bolt.Compiler.CodeGenerator.CountProperties[T] (System.Collections.Generic.IList`1[T] assets) (at <49db93d91caa465c9a68379fa91d5ff0>:0)
Bolt.Compiler.CodeGenerator.CreateCompilationModel () (at <49db93d91caa465c9a68379fa91d5ff0>:0)
Bolt.Compiler.CodeGenerator.Run (Bolt.Compiler.Assets.BoltProject context, System.String file) (at <49db93d91caa465c9a68379fa91d5ff0>:0)
BoltCompiler.GenerateCode (BoltCompilerOperation op) (at :0)
BoltCompiler.Run (BoltCompilerOperation op) (at :0)
BoltUserAssemblyCompiler.Run () (at :0)
UnityEngine.Debug:LogException(Exception)
BoltLog:Exception(Exception)
BoltUserAssemblyCompiler:Run()
BoltMenuItems:RunCompiler()

Best Answer

  • l_TJ_l
    l_TJ_l
    Answer ✓
    Options
    ok i fix it i just delete object that was used in state

    objects is just scriptable object or serialization class the Doc of bolt make it confusing

Answers

  • l_TJ_l
    l_TJ_l
    Answer ✓
    Options
    ok i fix it i just delete object that was used in state

    objects is just scriptable object or serialization class the Doc of bolt make it confusing