Hi Chris,
I’m currently using AC v1.82.1 with Unity 6000.2.7f2. I tried upgrading to Unity 6000.3.8f1 LTS, but encountered this error: Assets/AdventureCreator/Scripts/Animation/SpriteDirectionData.cs(25,4): error CS0592: Attribute 'SerializeField' is not valid on this declaration type. It is only valid on 'field' declarations.
Do I need to update AC to the latest version first, or is AC not compatible with Unity 6000.3? Also, could updating AC to the latest version cause any issues with my game?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
You will need the latest AC release for compatibility with Unity 6.3, yes.
You should always back your project up when upgrading both Unity and/or AC versions, or rely on version control, but the "Upgrade notes" section in the Changelog details any changes made to AC that may affect your game.
I managed to update my AC to version 1.86.1. I ran into a few strange issues, like the hotspot icons becoming enormous and not sticking to the size I set for them. However, there’s one red error I couldn’t resolve, which is related to the player input system. This error only appears and keeps repeating, reaching 999+ when I test the game in the editor. It’s causing problems with the input system.
Error:
I’m not sure if you remember, but my input system has a custom script you wrote for me to enable the AC menu puzzle to support Up and Down inputs.
https://prnt.sc/AB3zXULeN9gw
https://prnt.sc/rvLJ-rieHlA8
https://prnt.sc/ipAQ1CS6L6l0
https://prnt.sc/enTtm-DyAxzV
https://prnt.sc/0y30Bjg-7XtL
And here's the script(I'm still using Unity 6000.2.7f2):
Did you upgrade Unity at the same time, or is updating AC the only change so far?
Try replacing:
with:
Thank you, Chris. This fix has resolved the error. I really appreciate your help. I’ll continue testing the game to make sure there are no other issues, and then I’ll upgrade to Unity 6000.3, as I haven’t done that yet.