Appearance
Import checklist (legacy asset export path)
Use this checklist only when you install EventMonitor via asset export/import instead of UPM. For normal installation, prefer Installation via UPM (dependencies are automatic).
1) Add required package dependency
In the target project, open Packages/manifest.json and ensure:
json
{
"dependencies": {
"com.unity.nuget.mono-cecil": "1.11.6"
}
}Without this dependency, Unity.EventMonitor.CodeGen fails to compile with Mono.Cecil missing-type errors.
2) Recompile and verify ILPP assembly
After editing manifest.json:
- Let Unity resolve packages
- Trigger script recompile (or restart Unity)
- Confirm there are no
CS0234/CS0246errors forMono.Cecil.*
3) Enable diagnostics (optional but recommended)
If import still behaves unexpectedly:
- enable ILPP diagnostics in Event Monitor
- check Unity Console for per-assembly injection summary
See ILPP diagnostics and settings.
4) Smoke-test behavior
- Open
Window -> Event Monitor - Turn on
Record - Enter Play Mode
- Trigger a known
event +=and?.Invoke(...)path - Confirm
SUBandINVOKErecords appear