Diagnostic code · ARA0505
Native interop
A module tries to invoke native code directly or uses a disallowed interop API. Native interop belongs in the engine, including for editor modules. The edit is rejected; the last good code keeps running.
Common causes
- Declaring
externmethods or applyingDllImportorLibraryImport. - Calling
Marshal, native-library loading or other interop APIs outside the permitted layout and memory helpers.
Fixes
Call the corresponding Ara API instead of invoking native functions from the module.
Implement missing native integration in the engine and expose it through the generated, checked ABI.
Code:
ARA0505Constant:
cs::API_INTEROPReported by: Ara.Analyzers