Skip to content

🐞 Build Fails Due to Broken .anim Files – Works After Manual Deletion and Code Edits (HTC FOCUS VISION)Β #12

@Rasmy000

Description

@Rasmy000

🐞 Build Fails Due to Broken .anim Files – Works After Manual Deletion and Code Edits (HTC FOCUS VISION)

Issue:
While building a VIVE OpenXR-based Unity project for HTC VIVE VISION, the build fails due to corrupted or incompatible animation files:

Failed to load '.../RealisticHandInteraction(experimental)/Resources/Animations/LeftHandGrab.anim'. 
File may be corrupted or was serialized with a newer version of Unity.

Same error occurs for RightHandGrab.anim.


What Worked:
I deleted both LeftHandGrab.anim and RightHandGrab.anim, and made small changes in the code to remove or bypass references to them. After this, the build succeeded and the app ran properly on HTC FOCUS VISION.


Steps to Reproduce:

  1. Open the project using Unity \2021.3.16f1
  2. Set up for Android build targeting HTC FOCUS VISION
  3. Try building
  4. Observe .anim file errors
  5. Delete the two .anim files in PackageCache
  6. Remove related code
  7. Rebuild β†’ now succeeds

Expected Behavior:
The plugin should not depend on incompatible or corrupted .anim files by default β€” especially when they’re part of an experimental toolkit that may not be needed for basic functionality.


Suggested Fixes:

  • Re-export those .anim files using a Unity LTS version
  • Mark the Realistic Hand Interaction animations as optional or guard them with defines
  • Provide fallback/no-op prefabs or animations
  • Add troubleshooting notes to README for VIVE VISION developers

Environment:

  • Unity version: [e.g.2021.3.16f1]
  • VIVE OpenXR Plugin: [email protected]
  • Platform: Android (HTC VIVE VISION)
  • Architecture: IL2CPP, ARM64
  • XR Plugin: Unity OpenXR + VIVE OpenXR Toolkit

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