Native AOT
var aot = new NativeAOT();
aot.RegisterComponent<MyComponent>();
aot.RegisterTag <MyTag1>();
aot.RegisterScript <MyScript>();
var schema = aot.CreateSchema(); entity.AddComponent(new UnregisteredComponent());A type initializer threw an exception. To determine which type, inspect the InnerException's StackTrace property.
Stack Trace:
at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0x14f
at System.Runtime.CompilerServices.ClassConstructorRunner.CheckStaticClassConstructionReturnNonGCStaticBase(StaticClassConstructionContext*, IntPtr) + 0x1c
at Friflo.Engine.ECS.Entity.AddComponent[T](T&) + 0x4e
at MyApplication.UseUnregisteredComponent() + 0x7cOther Trimmings issues
Last updated