- Home /
What is this error and how can i fix it?
I switched the platform over from Mac (Which works perfectly on) to iOS and i get this error to every other object in the player, how can i fix it?
Error: (AdvancedPlayerMobile (vp_FPPlayerEventHandler)) does not support the type of 'HUDDamageFlash' in 'vp_FPPlayerEventHandler'. UnityEngine.Debug:LogError(Object)
Answer by yuriythebest · Jun 20, 2018 at 03:53 AM
Hello everyone! I spent hours trying to fix this and finally figured it out! 1 - vp_FPPlayerEventHandler - change the script execution order ( in my case I set it to "10" - before the other scripts) 2 - also something I did but not sure if necessary - search for any preprosessor directives in scripts such as vp_message, vp_value and add UNITY_ANDROID to the list of AOT in the preprosessor directives thing 3 - also not sure if necessary - in vp_FPPlayerEventHandler change the variables from vp_FPPlayerEventHandler
public vp_Message<vp_DamageInfo> HUDDamageFlash;
to public vp_Message HUDDamageFlash = new vp_Message("");
( again - probably step 1 with the execution order will be enough)