Search Issue Tracker
Fixed in 2017.2.X
Votes
0
Found in
5.6.1p4
Issue ID
923517
Regression
No
[IL2CPP] Casting Int32 to enum fails on runtime when app is built with il2cpp backend
Steps to reproduce:
1. Open attached project
2. Build app for UWP with il2cpp scripting backend
3. Open VS solution
4. Deploy on local machine
5. Observe errors when the app launches
Reproducible with: 2017.1.0f1, 2017.2.0b1
Full error:
System.ArgumentException: Object of type 'System.Int32' cannot be converted to type 'HutongGames.PlayMaker.Actions.EaseFsmAction+EaseType'.
Parameter name: value
at System.Reflection.MonoField.SetValueInternal (System.Reflection.FieldInfo fi, System.Object obj, System.Object value) [0x00000] in <00000000000000000000000000000000>:0
at System.Reflection.MonoField.SetValue (System.Object obj, System.Object val, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Globalization.CultureInfo culture) [0x00000] in <00000000000000000000000000000000>:0
at System.Reflection.FieldInfo.SetValue (System.Object obj, System.Object value) [0x00000] in <00000000000000000000000000000000>:0
at HutongGames.PlayMaker.ActionData.LoadActionField (System.Object obj, System.Reflection.FieldInfo field, System.Int32 paramIndex) [0x00000] in <00000000000000000000000000000000>:0
at HutongGames.PlayMaker.ActionData.CreateAction (HutongGames.PlayMaker.FsmState state, System.Int32 actionIndex) [0x00000] in <00000000000000000000000000000000>:0
at HutongGames.PlayMaker.ActionData.LoadActions (HutongGames.PlayMaker.FsmState state) [0x00000] in <00000000000000000000000000000000>:0
at HutongGames.PlayMaker.ActionData.LoadActions (HutongGames.PlayMaker.FsmState state) [0x00000] in <00000000000000000000000000000000>:0
at HutongGames.PlayMaker.FsmState.LoadActions () [0x00000] in <00000000000000000000000000000000>:0
at HutongGames.PlayMaker.Fsm.InitData () [0x00000] in <00000000000000000000000000000000>:0
at HutongGames.PlayMaker.Fsm.Init (UnityEngine.MonoBehaviour component) [0x00000] in <00000000000000000000000000000000>:0
at PlayMakerFSM.Init () [0x00000] in <00000000000000000000000000000000>:0
at PlayMakerFSM.Awake () [0x00000] in <00000000000000000000000000000000>:0
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Keywords on Material Variants aren't automatically saved when changed on original Material through Shader Graph
- Light Probes get baked when calling LightProbes.Tetrahedralize
- Shadows flicker and cause visual artifacts when modifying a GameObject's bounds using Swizzle (Y Mask) and Sine Time nodes
- [WebGL] Frame rate drops by 5-20 fps when moving cursor or touch input in the Player
- Light bleeds when using box shaped spotlight with specific Emission Range values
Add comment