apple / apple/unityplugins

SpatialController dependency/import issues

Offen
#64 5 Kommentare 4 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug Plug-in - SpatialController
Vorherrschende Sprache
C#
Sterne
982
Forks
248
Ø Merge
6 T. 12 Std.
Gemergte PRs (30 T.)
2

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne mit der Klasse AccessoryTrackingHelper und untersuche die Abhängigkeiten des Pakets spatialcontroller sowie den Code um die Zeilen 7 und 14. Prüfe, ob das Paket ohne Unity.VisualScripting oder Unity.PolySpatial kompiliert werden kann, und untersuche anschließend die Anforderung an die Beschreibung des Hand-Trackings in den XR-Projekteinstellungen; die Arbeit ist abgeschlossen, wenn keine unnötigen Abhängigkeiten erzwungen werden und das Paket ohne eine nicht verwendete Einrichtung des Hand-Trackings funktioniert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp, unity
Bereich
build-system, game-dev
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.