Native AOT
Friflo.Engine.ECS supports Native AOT deployment.
Note JSON serialization is currently not support by Native AOT.
Using Friflo.Engine.ECS does not require a source generator - aka Roslyn Analyzer. A source generator could be used to register component types automatically.
Because of this component types used by an application must be registered on startup as shown below.
In case using an unregistered component a TypeInitializationException
will be thrown. E.g.
On console to the exception log looks like
Other Trimmings issues
Community feedback on Discord. In case you get an exception like:
Add the <TrimmerRootAssembly>
to your *.csproj.
See: Trimming options > Root assemblies
Last updated