Quick answer: Unity VFX Graph event attributes missing in IL2CPP builds? Reflection-based discovery fails; pre-register events at startup.
Editor: event payload reads correctly. iOS Release: event arrives with default values.
Pre-register events
VisualEffect.SendEvent("OnHit", payload);Direct API; doesn't rely on reflection.
Or add to link.xml
Preserve VFX-related assemblies. Reflection survives.
Test IL2CPP early
Build IL2CPP variants in CI. Catches the strip class of bugs immediately.
“Reflection-based pipelines need IL2CPP preservation. Defaults strip aggressively.”
If your project uses VFX Graph events, the IL2CPP audit is non-optional. Plan it.