Skip to content

SpatialController dependency/import issues #64

Description

@CarpetHead

Couple of complaints about the spatialcontroller package, in the AccessoryTrackingHelper class

line 7
using Unity.VisualScripting;

this shouldn't be here - it's not used, but causes compile errors if you don't have that package. This seems like it's just clearly a bug/mistake

line 14
using Unity.PolySpatial;

We don't use polyspatial at all - polyspatial is added as a dependency to the package just to check if you are in a specific camera mode. It's so much extra bloat just for something we don't care about or need. I believe you can use "Version Defines" to make this code optional for people who have polyspatial in their project, rather than making it a forced dependency

Also, when using the package, it seems to require a hand tracking description - even though we aren't really using hand tracking. To make things slightly more annoying, the hand tracking description box in the xr project settings is greyed out if you don't have unity.xr.hands in your project

Activity

  1. ryzngard commented on Jan 22, 2026

    @ryzngard
    Collaborator

    It looks like the PolySpatial issue is similar to #76 . There's a PR out now to resolve that

  2. CarpetHead commented on Jan 29, 2026

    @CarpetHead
    Author

    that doesn't quote solve it, you also need to remove it from

    unityplugins/plug-ins/Apple.SpatialController/Apple.SpatialController_Unity/Assets/Apple.SpatialController/package.json

  3. CarpetHead commented on Jan 29, 2026

    @CarpetHead
    Author

    locally, I removed these lines:

    "com.unity.polyspatial": "2.3.1",
    "com.unity.polyspatial.xr": "2.3.1",
    "com.unity.xr.arfoundation": "6.1.1",
    
  4. CarpetHead commented on Jan 29, 2026

    @CarpetHead
    Author

    just to tag in - another issue appears to have popped up lately. It seems like there is a new NSAccessoryTrackingDescription required for, well, accessory tracking - and the plugin does not provide a way to set it (so we had to write our own build postprocessor)

  5. ryzngard commented on Jan 29, 2026

    @ryzngard
    Collaborator

    just to tag in - another issue appears to have popped up lately. It seems like there is a new NSAccessoryTrackingDescription required for, well, accessory tracking - and the plugin does not provide a way to set it (so we had to write our own build postprocessor)

    Got it, please file another issue and I'll get it to the team. I'm updating the PR to remove from the package.json and some other locations where things weren't needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions