Update use of SerializeField for Unity 6.3 LTS compatibility

#1702 · closed · 2 comments

View on GitHub ↗

maxs-delta3

**Describe the bug** Version 7.2.0 does not compile when updating to Unity 6.3 LTS due to new SerializeField strict enforcement **To Reproduce** Try to import UltraLeap on a Unity 6.3 LTS project **Expected behavior** Assets\ThirdParty\Ultraleap\Tracking\Core\Runtime\Scripts\Hands\CapsuleHand.cs(32,10): error CS0592: Attribute 'SerializeField' is not valid on this declaration type. It is only valid on 'field' declarations. **Additional context** Fix by explicitly adding `field: SerializeField` to indicate that the backing field is being serialized Source: https://discussions.unity.com/t/planned-breaking-changes-in-unity-6-3/1646418

Comments

rblenkinsopp

Thank you for the report, we are Looking to merge https://github.com/ultraleap/UnityPlugin/pull/1700 to resolve this.

MaxPalmer-UH

Yes, thanks. Now approved.