Flax tries to implement all the engine features and scripting APIs across all supported platforms. However, some platforms have permanent restrictions. This page helps with understanding and dealing with possible cross-platform limitations.
Not supported features
Not supported APIs
Ahead-of-time (AOT) compile is a technique used to precompile all the managed code during game building process instead of using just-in-time (JIT) compilation on the target device. That's because some platforms do not allow runtime code generation. In most cases this has no effect on game scripting but in a few specific cases, AOT platforms require additional consideration.
Because code generation is disabled in AOT mode (scriptng backend throws an exception) the following features are not supported:
- Methods from
System.Reflection.Emitnamespace are unsupported.
- Generic virtual methods have restrictions.
- When using generic types you need to declare generic attributes types to precompile them.
Platforms that use AOT:
- Xbox One