Skip to content

Update use of SerializeField for Unity 6.3 LTS compatibility #1702

@maxs-delta3

Description

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions