Skip to content

Commit

Permalink
Removing unnecessary controller visuals from the default HoloLens pro…
Browse files Browse the repository at this point in the history
…file to reduce memory footprint (#11166)

* removing unnecessary controller visuals from the default HoloLens profile to reduce memory footprint

* Updating the Hololens1 profile as well
  • Loading branch information
RogPodge authored Nov 3, 2022
1 parent f2e310c commit b261f08
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 514da61389c049c0bdaf31b7f6970d33, type: 3}
m_Name: DefaultHoloLensControllerVisualizationProfile
m_EditorClassIdentifier:
isCustomProfile: 0
renderMotionControllers: 0
defaultControllerVisualizationType:
reference: Microsoft.MixedReality.Toolkit.Input.MixedRealityControllerVisualizer,
Microsoft.MixedReality.Toolkit.SDK
usePlatformModels: 1
platformModelMaterial: {fileID: 2100000, guid: 54322026142964d4084eda2478d9b1a2,
type: 2}
globalLeftControllerModel: {fileID: 0}
globalRightControllerModel: {fileID: 0}
globalLeftHandVisualizer: {fileID: 61451597023024772, guid: 6080fb9e3b49fda449e3d70daf6d2254,
type: 3}
globalRightHandVisualizer: {fileID: 3512491064599439886, guid: 7a857af0cb85b4a47b6ec8a1babcb73c,
type: 3}
controllerVisualizationSettings:
- description: Windows Mixed Reality Controller
controllerType:
reference: Microsoft.MixedReality.Toolkit.WindowsMixedReality.Input.WindowsMixedRealityController,
Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality
handedness: 3
usePlatformModels: 1
platformModelMaterial: {fileID: 0}
overrideModel: {fileID: 0}
controllerVisualizationType:
reference: Microsoft.MixedReality.Toolkit.Input.WindowsMixedRealityControllerVisualizer,
Microsoft.MixedReality.Toolkit.SDK
- description: HP Motion Controller
controllerType:
reference: Microsoft.MixedReality.Toolkit.WindowsMixedReality.Input.HPMotionController,
Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality
handedness: 3
usePlatformModels: 1
platformModelMaterial: {fileID: 0}
overrideModel: {fileID: 0}
controllerVisualizationType:
reference: Microsoft.MixedReality.Toolkit.Input.WindowsMixedRealityControllerVisualizer,
Microsoft.MixedReality.Toolkit.SDK
- description: Windows Mixed Reality Articulated Hand
controllerType:
reference: Microsoft.MixedReality.Toolkit.WindowsMixedReality.Input.WindowsMixedRealityArticulatedHand,
Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality
handedness: 3
usePlatformModels: 0
platformModelMaterial: {fileID: 0}
overrideModel: {fileID: 1227372834072826, guid: 378f91dbbff9e2343b27a467467750bf,
type: 3}
controllerVisualizationType:
reference: Microsoft.MixedReality.Toolkit.Input.BaseHandVisualizer, Microsoft.MixedReality.Toolkit

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ MonoBehaviour:
enableControllerMapping: 1
controllerMappingProfile: {fileID: 11400000, guid: 39ded1fd0711a0c448413d0e1ec4f7f3,
type: 2}
controllerVisualizationProfile: {fileID: 11400000, guid: 345c06fdf3732db46b96299bd3cba653,
controllerVisualizationProfile: {fileID: 11400000, guid: ac2477ca3c42e514f86bc810089ba605,
type: 2}
handTrackingProfile: {fileID: 11400000, guid: e445e6fda57508c46935bb141b7673a7,
type: 2}
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ MonoBehaviour:
enableControllerMapping: 1
controllerMappingProfile: {fileID: 11400000, guid: 39ded1fd0711a0c448413d0e1ec4f7f3,
type: 2}
controllerVisualizationProfile: {fileID: 11400000, guid: 345c06fdf3732db46b96299bd3cba653,
controllerVisualizationProfile: {fileID: 11400000, guid: ac2477ca3c42e514f86bc810089ba605,
type: 2}
handTrackingProfile: {fileID: 11400000, guid: e445e6fda57508c46935bb141b7673a7,
type: 2}

0 comments on commit b261f08

Please sign in to comment.