apple / apple/unityplugins

SpatialController dependency/import issues

Open
#64 5 comments 4 reactions 0 assignees View on GitHub
bug Plug-in - SpatialController
Dominant language
C#
Stars
982
Forks
248
Avg merge
6d 12h
Merged PRs (30d)
2

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the AccessoryTrackingHelper class and inspect the spatialcontroller package dependencies and the code around lines 7 and 14. Check whether the package compiles without Unity.VisualScripting or Unity.PolySpatial, then investigate the hand tracking description requirement in the XR project settings; done means unnecessary dependencies are not forced and the package works without unused hand tracking setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
build-system, game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.