fr.jeanf.universal.player 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (957) hide show
  1. package/.github/workflows/publish.yml +23 -0
  2. package/.github/workflows.meta +8 -0
  3. package/Editor/CreateEventChannelsEditor.cs +22 -0
  4. package/Editor/CreateEventChannelsEditor.cs.meta +11 -0
  5. package/Editor/CreatePlayerActionsEditor.cs +23 -0
  6. package/Editor/CreatePlayerActionsEditor.cs.meta +11 -0
  7. package/Editor/CreateVRHands.cs +28 -0
  8. package/Editor/CreateVRHands.cs.meta +11 -0
  9. package/Editor/CreateVrPlayer.cs +44 -0
  10. package/Editor/CreateVrPlayer.cs.meta +11 -0
  11. package/Editor.meta +8 -0
  12. package/LICENSE +175 -0
  13. package/LICENSE.meta +7 -0
  14. package/README.md +70 -0
  15. package/README.md.meta +7 -0
  16. package/Runtime/InputActions/vr-player_InputActions.inputactions +2598 -0
  17. package/Runtime/InputActions/vr-player_InputActions.inputactions.meta +14 -0
  18. package/Runtime/InputActions/vrPlayer_ContinuousMove.preset +125 -0
  19. package/Runtime/InputActions/vrPlayer_ContinuousMove.preset.meta +8 -0
  20. package/Runtime/InputActions/vrPlayer_ContinuousTurn.preset +109 -0
  21. package/Runtime/InputActions/vrPlayer_ContinuousTurn.preset.meta +8 -0
  22. package/Runtime/InputActions/vrPlayer_LeftController.preset +511 -0
  23. package/Runtime/InputActions/vrPlayer_LeftController.preset.meta +8 -0
  24. package/Runtime/InputActions/vrPlayer_RightController.preset +600 -0
  25. package/Runtime/InputActions/vrPlayer_RightController.preset.meta +8 -0
  26. package/Runtime/InputActions/vrPlayer_SnapTurn.preset +121 -0
  27. package/Runtime/InputActions/vrPlayer_SnapTurn.preset.meta +8 -0
  28. package/Runtime/InputActions.meta +8 -0
  29. package/Runtime/Materials/GhostHands.mat +76 -0
  30. package/Runtime/Materials/GhostHands.mat.meta +8 -0
  31. package/Runtime/Materials/GloveManager.cs +18 -0
  32. package/Runtime/Materials/GloveManager.cs.meta +11 -0
  33. package/Runtime/Materials/Grey.mat +355 -0
  34. package/Runtime/Materials/Grey.mat.meta +8 -0
  35. package/Runtime/Materials/Pink.mat +355 -0
  36. package/Runtime/Materials/Pink.mat.meta +8 -0
  37. package/Runtime/Materials/SimpleColor.shadergraph +1206 -0
  38. package/Runtime/Materials/SimpleColor.shadergraph.meta +10 -0
  39. package/Runtime/Materials/White.mat +355 -0
  40. package/Runtime/Materials/White.mat.meta +8 -0
  41. package/Runtime/Materials.meta +8 -0
  42. package/Runtime/Physics/HandPhysicsMaterial.physicMaterial +15 -0
  43. package/Runtime/Physics/HandPhysicsMaterial.physicMaterial.meta +8 -0
  44. package/Runtime/Physics.meta +8 -0
  45. package/Runtime/Prefabs/CustomPass_Fade.prefab +106 -0
  46. package/Runtime/Prefabs/CustomPass_Fade.prefab.meta +7 -0
  47. package/Runtime/Prefabs/HandDetector.prefab +234 -0
  48. package/Runtime/Prefabs/HandDetector.prefab.meta +7 -0
  49. package/Runtime/Prefabs/Player.prefab +10602 -0
  50. package/Runtime/Prefabs/Player.prefab.meta +7 -0
  51. package/Runtime/Prefabs/XR/Complete Teleport Area Set Up.prefab +503 -0
  52. package/Runtime/Prefabs/XR/Complete Teleport Area Set Up.prefab.meta +7 -0
  53. package/Runtime/Prefabs/XR/Complete XR Origin Set Up.prefab +272 -0
  54. package/Runtime/Prefabs/XR/Complete XR Origin Set Up.prefab.meta +7 -0
  55. package/Runtime/Prefabs/XR/Interactables/Interactable Instant Pyramid.prefab +337 -0
  56. package/Runtime/Prefabs/XR/Interactables/Interactable Instant Pyramid.prefab.meta +7 -0
  57. package/Runtime/Prefabs/XR/Interactables/Interactable Kinematic Torus.prefab +337 -0
  58. package/Runtime/Prefabs/XR/Interactables/Interactable Kinematic Torus.prefab.meta +7 -0
  59. package/Runtime/Prefabs/XR/Interactables/Interactable Simple Cube.prefab +276 -0
  60. package/Runtime/Prefabs/XR/Interactables/Interactable Simple Cube.prefab.meta +7 -0
  61. package/Runtime/Prefabs/XR/Interactables/Interactable Velocity Tracked Wedge.prefab +337 -0
  62. package/Runtime/Prefabs/XR/Interactables/Interactable Velocity Tracked Wedge.prefab.meta +7 -0
  63. package/Runtime/Prefabs/XR/Interactables/Interaction Affordance.prefab +199 -0
  64. package/Runtime/Prefabs/XR/Interactables/Interaction Affordance.prefab.meta +7 -0
  65. package/Runtime/Prefabs/XR/Interactables Sample.prefab +260 -0
  66. package/Runtime/Prefabs/XR/Interactables Sample.prefab.meta +7 -0
  67. package/Runtime/Prefabs/XR/Interactables.meta +8 -0
  68. package/Runtime/Prefabs/XR/Teleport/Blocking Teleport Reticle.prefab +278 -0
  69. package/Runtime/Prefabs/XR/Teleport/Blocking Teleport Reticle.prefab.meta +7 -0
  70. package/Runtime/Prefabs/XR/Teleport/Directional Teleport Reticle.prefab +396 -0
  71. package/Runtime/Prefabs/XR/Teleport/Directional Teleport Reticle.prefab.meta +7 -0
  72. package/Runtime/Prefabs/XR/Teleport/Teleport Anchor.prefab +229 -0
  73. package/Runtime/Prefabs/XR/Teleport/Teleport Anchor.prefab.meta +7 -0
  74. package/Runtime/Prefabs/XR/Teleport/Teleport Area.prefab +231 -0
  75. package/Runtime/Prefabs/XR/Teleport/Teleport Area.prefab.meta +7 -0
  76. package/Runtime/Prefabs/XR/Teleport.meta +8 -0
  77. package/Runtime/Prefabs/XR/UI Sample.prefab +533 -0
  78. package/Runtime/Prefabs/XR/UI Sample.prefab.meta +7 -0
  79. package/Runtime/Prefabs/XR/UI_2D/MinMaxSlider.prefab +527 -0
  80. package/Runtime/Prefabs/XR/UI_2D/MinMaxSlider.prefab.meta +7 -0
  81. package/Runtime/Prefabs/XR/UI_2D/ModalSingleButton.prefab +537 -0
  82. package/Runtime/Prefabs/XR/UI_2D/ModalSingleButton.prefab.meta +7 -0
  83. package/Runtime/Prefabs/XR/UI_2D/TextButton.prefab +338 -0
  84. package/Runtime/Prefabs/XR/UI_2D/TextButton.prefab.meta +7 -0
  85. package/Runtime/Prefabs/XR/UI_2D.meta +8 -0
  86. package/Runtime/Prefabs/XR/UI_3D/Push Button.prefab +499 -0
  87. package/Runtime/Prefabs/XR/UI_3D/Push Button.prefab.meta +7 -0
  88. package/Runtime/Prefabs/XR/UI_3D.meta +8 -0
  89. package/Runtime/Prefabs/XR/XR Origin Pieces/Direct Interactor.prefab +133 -0
  90. package/Runtime/Prefabs/XR/XR Origin Pieces/Direct Interactor.prefab.meta +7 -0
  91. package/Runtime/Prefabs/XR/XR Origin Pieces/Gaze Interactor.prefab +355 -0
  92. package/Runtime/Prefabs/XR/XR Origin Pieces/Gaze Interactor.prefab.meta +7 -0
  93. package/Runtime/Prefabs/XR/XR Origin Pieces/Poke Interactor.prefab +254 -0
  94. package/Runtime/Prefabs/XR/XR Origin Pieces/Poke Interactor.prefab.meta +7 -0
  95. package/Runtime/Prefabs/XR/XR Origin Pieces/Ray Interactor.prefab +437 -0
  96. package/Runtime/Prefabs/XR/XR Origin Pieces/Ray Interactor.prefab.meta +7 -0
  97. package/Runtime/Prefabs/XR/XR Origin Pieces/Teleport Interactor.prefab +439 -0
  98. package/Runtime/Prefabs/XR/XR Origin Pieces/Teleport Interactor.prefab.meta +7 -0
  99. package/Runtime/Prefabs/XR/XR Origin Pieces/XR Controller Left.prefab +804 -0
  100. package/Runtime/Prefabs/XR/XR Origin Pieces/XR Controller Left.prefab.meta +7 -0
  101. package/Runtime/Prefabs/XR/XR Origin Pieces/XR Controller Right.prefab +801 -0
  102. package/Runtime/Prefabs/XR/XR Origin Pieces/XR Controller Right.prefab.meta +7 -0
  103. package/Runtime/Prefabs/XR/XR Origin Pieces/XR Origin Preconfigured.prefab +2371 -0
  104. package/Runtime/Prefabs/XR/XR Origin Pieces/XR Origin Preconfigured.prefab.meta +7 -0
  105. package/Runtime/Prefabs/XR/XR Origin Pieces.meta +8 -0
  106. package/Runtime/Prefabs/XR.meta +8 -0
  107. package/Runtime/Prefabs/XROrigin.prefab +5073 -0
  108. package/Runtime/Prefabs/XROrigin.prefab.meta +7 -0
  109. package/Runtime/Prefabs.meta +8 -0
  110. package/Runtime/Shaders/Hands_ShaderGraph.shadergraph +21544 -0
  111. package/Runtime/Shaders/Hands_ShaderGraph.shadergraph.meta +10 -0
  112. package/Runtime/Shaders/M_HandGhost.mat +421 -0
  113. package/Runtime/Shaders/M_HandGhost.mat.meta +8 -0
  114. package/Runtime/Shaders/SHG_GhostHands.shadergraph +1276 -0
  115. package/Runtime/Shaders/SHG_GhostHands.shadergraph.meta +10 -0
  116. package/Runtime/Shaders/SH_GhostHands.shader +97 -0
  117. package/Runtime/Shaders/SH_GhostHands.shader.meta +9 -0
  118. package/Runtime/Shaders/SH_GhostShader_HDRP.shader +85 -0
  119. package/Runtime/Shaders/SH_GhostShader_HDRP.shader.meta +10 -0
  120. package/Runtime/Shaders/Subgraphs/CameraMultiplier.shadersubgraph +881 -0
  121. package/Runtime/Shaders/Subgraphs/CameraMultiplier.shadersubgraph.meta +10 -0
  122. package/Runtime/Shaders/Subgraphs/DetailUVs.shadersubgraph +483 -0
  123. package/Runtime/Shaders/Subgraphs/DetailUVs.shadersubgraph.meta +10 -0
  124. package/Runtime/Shaders/Subgraphs.meta +8 -0
  125. package/Runtime/Shaders.meta +8 -0
  126. package/Runtime/cursor/Forward.png +0 -0
  127. package/Runtime/cursor/Forward.png.meta +108 -0
  128. package/Runtime/cursor/cursor_cursor_0.svg +21 -0
  129. package/Runtime/cursor/cursor_cursor_0.svg.meta +55 -0
  130. package/Runtime/cursor/cursor_cursor_1.svg +18 -0
  131. package/Runtime/cursor/cursor_cursor_1.svg.meta +55 -0
  132. package/Runtime/cursor/teleport.svg +16 -0
  133. package/Runtime/cursor/teleport.svg.meta +55 -0
  134. package/Runtime/cursor.meta +8 -0
  135. package/Runtime/scripts/ActionManagement/ActionContainer/ActionContainerSO.asset +16 -0
  136. package/Runtime/scripts/ActionManagement/ActionContainer/ActionContainerSO.asset.meta +8 -0
  137. package/Runtime/scripts/ActionManagement/ActionContainer.meta +8 -0
  138. package/Runtime/scripts/ActionManagement/ActionContainerSO.cs +50 -0
  139. package/Runtime/scripts/ActionManagement/ActionContainerSO.cs.meta +11 -0
  140. package/Runtime/scripts/ActionManagement/ActionRebindChannels/ActionRebindedInRebindScript.asset +16 -0
  141. package/Runtime/scripts/ActionManagement/ActionRebindChannels/ActionRebindedInRebindScript.asset.meta +8 -0
  142. package/Runtime/scripts/ActionManagement/ActionRebindChannels/ActionRebindedInUI.asset +16 -0
  143. package/Runtime/scripts/ActionManagement/ActionRebindChannels/ActionRebindedInUI.asset.meta +8 -0
  144. package/Runtime/scripts/ActionManagement/ActionRebindChannels.meta +8 -0
  145. package/Runtime/scripts/ActionManagement/ActionRebinder.cs +131 -0
  146. package/Runtime/scripts/ActionManagement/ActionRebinder.cs.meta +11 -0
  147. package/Runtime/scripts/ActionManagement/ActionSO.cs +55 -0
  148. package/Runtime/scripts/ActionManagement/ActionSO.cs.meta +11 -0
  149. package/Runtime/scripts/ActionManagement/InputActionManager.cs +35 -0
  150. package/Runtime/scripts/ActionManagement/InputActionManager.cs.meta +11 -0
  151. package/Runtime/scripts/ActionManagement/PlayerActionManager.cs +234 -0
  152. package/Runtime/scripts/ActionManagement/PlayerActionManager.cs.meta +11 -0
  153. package/Runtime/scripts/ActionManagement/PlayerInputEventManager.cs +101 -0
  154. package/Runtime/scripts/ActionManagement/PlayerInputEventManager.cs.meta +11 -0
  155. package/Runtime/scripts/ActionManagement/PlayerInputInterface.cs +147 -0
  156. package/Runtime/scripts/ActionManagement/PlayerInputInterface.cs.meta +11 -0
  157. package/Runtime/scripts/ActionManagement/UIHandlingSO/UIHandlerEventChannelSO.asset +16 -0
  158. package/Runtime/scripts/ActionManagement/UIHandlingSO/UIHandlerEventChannelSO.asset.meta +8 -0
  159. package/Runtime/scripts/ActionManagement/UIHandlingSO/loginFieldIsOpened.asset +16 -0
  160. package/Runtime/scripts/ActionManagement/UIHandlingSO/loginFieldIsOpened.asset.meta +8 -0
  161. package/Runtime/scripts/ActionManagement/UIHandlingSO.meta +8 -0
  162. package/Runtime/scripts/ActionManagement/XR Debugger.cs +41 -0
  163. package/Runtime/scripts/ActionManagement/XR Debugger.cs.meta +11 -0
  164. package/Runtime/scripts/ActionManagement.meta +8 -0
  165. package/Runtime/scripts/Basics/MainMenuController.cs +54 -0
  166. package/Runtime/scripts/Basics/MainMenuController.cs.meta +11 -0
  167. package/Runtime/scripts/Basics/PrimaryItemController.cs +80 -0
  168. package/Runtime/scripts/Basics/PrimaryItemController.cs.meta +11 -0
  169. package/Runtime/scripts/Basics.meta +8 -0
  170. package/Runtime/scripts/Fade/FadeChannel.asset +16 -0
  171. package/Runtime/scripts/Fade/FadeChannel.asset.meta +8 -0
  172. package/Runtime/scripts/Fade/FadeMask.cs +115 -0
  173. package/Runtime/scripts/Fade/FadeMask.cs.meta +11 -0
  174. package/Runtime/scripts/Fade/HDRP FadeGlobalVolume Profile.asset +44 -0
  175. package/Runtime/scripts/Fade/HDRP FadeGlobalVolume Profile.asset.meta +8 -0
  176. package/Runtime/scripts/Fade/URP FadeGlobalVolume Profile.asset +44 -0
  177. package/Runtime/scripts/Fade/URP FadeGlobalVolume Profile.asset.meta +8 -0
  178. package/Runtime/scripts/Fade.meta +8 -0
  179. package/Runtime/scripts/FireEventOnTrigger.cs +53 -0
  180. package/Runtime/scripts/FireEventOnTrigger.cs.meta +11 -0
  181. package/Runtime/scripts/Gaze/CursorStateController.cs +167 -0
  182. package/Runtime/scripts/Gaze/CursorStateController.cs.meta +11 -0
  183. package/Runtime/scripts/Gaze/FPSCameraMovement.cs +224 -0
  184. package/Runtime/scripts/Gaze/FPSCameraMovement.cs.meta +11 -0
  185. package/Runtime/scripts/Gaze/NoPeeking.cs +60 -0
  186. package/Runtime/scripts/Gaze/NoPeeking.cs.meta +11 -0
  187. package/Runtime/scripts/Gaze.meta +8 -0
  188. package/Runtime/scripts/HandInteraction/BlendableHand.cs +30 -0
  189. package/Runtime/scripts/HandInteraction/BlendableHand.cs.meta +11 -0
  190. package/Runtime/scripts/HandInteraction/Core/Hand.cs +50 -0
  191. package/Runtime/scripts/HandInteraction/Core/Hand.cs.meta +11 -0
  192. package/Runtime/scripts/HandInteraction/Core/HandController.cs +29 -0
  193. package/Runtime/scripts/HandInteraction/Core/HandController.cs.meta +11 -0
  194. package/Runtime/scripts/HandInteraction/Core/HandPoseManager.cs +105 -0
  195. package/Runtime/scripts/HandInteraction/Core/HandPoseManager.cs.meta +11 -0
  196. package/Runtime/scripts/HandInteraction/Core/HandsPhysics.cs +197 -0
  197. package/Runtime/scripts/HandInteraction/Core/HandsPhysics.cs.meta +2 -0
  198. package/Runtime/scripts/HandInteraction/Core/SwapHands.cs +76 -0
  199. package/Runtime/scripts/HandInteraction/Core/SwapHands.cs.meta +11 -0
  200. package/Runtime/scripts/HandInteraction/Core.meta +8 -0
  201. package/Runtime/scripts/HandInteraction/DetectWhichHandCollided.cs +18 -0
  202. package/Runtime/scripts/HandInteraction/DetectWhichHandCollided.cs.meta +11 -0
  203. package/Runtime/scripts/HandInteraction/Editor/HandPreviewEditor.cs +71 -0
  204. package/Runtime/scripts/HandInteraction/Editor/HandPreviewEditor.cs.meta +11 -0
  205. package/Runtime/scripts/HandInteraction/Editor/PoseContainerEditor.cs +26 -0
  206. package/Runtime/scripts/HandInteraction/Editor/PoseContainerEditor.cs.meta +11 -0
  207. package/Runtime/scripts/HandInteraction/Editor/PoseWindow.cs +258 -0
  208. package/Runtime/scripts/HandInteraction/Editor/PoseWindow.cs.meta +11 -0
  209. package/Runtime/scripts/HandInteraction/Editor.meta +8 -0
  210. package/Runtime/scripts/HandInteraction/GetPrimaryInHandItemWithVRController.cs +212 -0
  211. package/Runtime/scripts/HandInteraction/GetPrimaryInHandItemWithVRController.cs.meta +11 -0
  212. package/Runtime/scripts/HandInteraction/GrabHandPose.cs +101 -0
  213. package/Runtime/scripts/HandInteraction/GrabHandPose.cs.meta +11 -0
  214. package/Runtime/scripts/HandInteraction/HandData/Left XR Direct Interactor Event Channel SO.asset +16 -0
  215. package/Runtime/scripts/HandInteraction/HandData/Left XR Direct Interactor Event Channel SO.asset.meta +8 -0
  216. package/Runtime/scripts/HandInteraction/HandData/Right XR Direct Interactor Event Channel SO.asset +16 -0
  217. package/Runtime/scripts/HandInteraction/HandData/Right XR Direct Interactor Event Channel SO.asset.meta +8 -0
  218. package/Runtime/scripts/HandInteraction/HandData/XRBaseInteractorEventChannelSO.cs +18 -0
  219. package/Runtime/scripts/HandInteraction/HandData/XRBaseInteractorEventChannelSO.cs.meta +11 -0
  220. package/Runtime/scripts/HandInteraction/HandData/XRBaseInteractorListener.cs +43 -0
  221. package/Runtime/scripts/HandInteraction/HandData/XRBaseInteractorListener.cs.meta +11 -0
  222. package/Runtime/scripts/HandInteraction/HandData/XRBaseInteractorSender.cs +39 -0
  223. package/Runtime/scripts/HandInteraction/HandData/XRBaseInteractorSender.cs.meta +11 -0
  224. package/Runtime/scripts/HandInteraction/HandData.cs +14 -0
  225. package/Runtime/scripts/HandInteraction/HandData.cs.meta +11 -0
  226. package/Runtime/scripts/HandInteraction/HandData.meta +8 -0
  227. package/Runtime/scripts/HandInteraction/HandPoser/Hands/BaseHand.cs +127 -0
  228. package/Runtime/scripts/HandInteraction/HandPoser/Hands/BaseHand.cs.meta +11 -0
  229. package/Runtime/scripts/HandInteraction/HandPoser/Hands/GameplayHand.cs +69 -0
  230. package/Runtime/scripts/HandInteraction/HandPoser/Hands/GameplayHand.cs.meta +11 -0
  231. package/Runtime/scripts/HandInteraction/HandPoser/Hands/HandsDisplayer.cs +38 -0
  232. package/Runtime/scripts/HandInteraction/HandPoser/Hands/HandsDisplayer.cs.meta +2 -0
  233. package/Runtime/scripts/HandInteraction/HandPoser/Hands/PreviewHand.cs +61 -0
  234. package/Runtime/scripts/HandInteraction/HandPoser/Hands/PreviewHand.cs.meta +11 -0
  235. package/Runtime/scripts/HandInteraction/HandPoser/Hands/Support/HandInfo.cs +23 -0
  236. package/Runtime/scripts/HandInteraction/HandPoser/Hands/Support/HandInfo.cs.meta +11 -0
  237. package/Runtime/scripts/HandInteraction/HandPoser/Hands/Support/HandType.cs +6 -0
  238. package/Runtime/scripts/HandInteraction/HandPoser/Hands/Support/HandType.cs.meta +11 -0
  239. package/Runtime/scripts/HandInteraction/HandPoser/Hands/Support.meta +8 -0
  240. package/Runtime/scripts/HandInteraction/HandPoser/Hands.meta +8 -0
  241. package/Runtime/scripts/HandInteraction/HandPoser/Pose/Pose.cs +27 -0
  242. package/Runtime/scripts/HandInteraction/HandPoser/Pose/Pose.cs.meta +11 -0
  243. package/Runtime/scripts/HandInteraction/HandPoser/Pose/PoseContainer.cs +76 -0
  244. package/Runtime/scripts/HandInteraction/HandPoser/Pose/PoseContainer.cs.meta +11 -0
  245. package/Runtime/scripts/HandInteraction/HandPoser/Pose/PoseHelper/HandManager.cs +93 -0
  246. package/Runtime/scripts/HandInteraction/HandPoser/Pose/PoseHelper/HandManager.cs.meta +11 -0
  247. package/Runtime/scripts/HandInteraction/HandPoser/Pose/PoseHelper/SelectionHandler.cs +110 -0
  248. package/Runtime/scripts/HandInteraction/HandPoser/Pose/PoseHelper/SelectionHandler.cs.meta +11 -0
  249. package/Runtime/scripts/HandInteraction/HandPoser/Pose/PoseHelper.meta +8 -0
  250. package/Runtime/scripts/HandInteraction/HandPoser/Pose.meta +8 -0
  251. package/Runtime/scripts/HandInteraction/HandPoser/Utility/Extensions.cs +11 -0
  252. package/Runtime/scripts/HandInteraction/HandPoser/Utility/Extensions.cs.meta +11 -0
  253. package/Runtime/scripts/HandInteraction/HandPoser/Utility.meta +8 -0
  254. package/Runtime/scripts/HandInteraction/HandPoser.meta +8 -0
  255. package/Runtime/scripts/HandInteraction/HandVibration.cs +35 -0
  256. package/Runtime/scripts/HandInteraction/HandVibration.cs.meta +2 -0
  257. package/Runtime/scripts/HandInteraction/HandsAppearanceManager.cs +212 -0
  258. package/Runtime/scripts/HandInteraction/HandsAppearanceManager.cs.meta +11 -0
  259. package/Runtime/scripts/HandInteraction/HandsStateController.cs +32 -0
  260. package/Runtime/scripts/HandInteraction/HandsStateController.cs.meta +11 -0
  261. package/Runtime/scripts/HandInteraction/KeyboardGrab.cs +49 -0
  262. package/Runtime/scripts/HandInteraction/KeyboardGrab.cs.meta +11 -0
  263. package/Runtime/scripts/HandInteraction/Locomotion/BindTeleportationAreaToInteractionManager.cs +31 -0
  264. package/Runtime/scripts/HandInteraction/Locomotion/BindTeleportationAreaToInteractionManager.cs.meta +11 -0
  265. package/Runtime/scripts/HandInteraction/Locomotion/TeleportationManager.cs +85 -0
  266. package/Runtime/scripts/HandInteraction/Locomotion/TeleportationManager.cs.meta +11 -0
  267. package/Runtime/scripts/HandInteraction/Locomotion.meta +8 -0
  268. package/Runtime/scripts/HandInteraction/PerformAction.cs +60 -0
  269. package/Runtime/scripts/HandInteraction/PerformAction.cs.meta +11 -0
  270. package/Runtime/scripts/HandInteraction/PickableObject.cs +54 -0
  271. package/Runtime/scripts/HandInteraction/PickableObject.cs.meta +11 -0
  272. package/Runtime/scripts/HandInteraction/PointOnCollisionTriggerWhenGrab.cs +169 -0
  273. package/Runtime/scripts/HandInteraction/PointOnCollisionTriggerWhenGrab.cs.meta +11 -0
  274. package/Runtime/scripts/HandInteraction/PointingPoseManager.cs +50 -0
  275. package/Runtime/scripts/HandInteraction/PointingPoseManager.cs.meta +11 -0
  276. package/Runtime/scripts/HandInteraction/RayInteractorManager.cs +41 -0
  277. package/Runtime/scripts/HandInteraction/RayInteractorManager.cs.meta +11 -0
  278. package/Runtime/scripts/HandInteraction/SetPoseOnTrigger.cs +59 -0
  279. package/Runtime/scripts/HandInteraction/SetPoseOnTrigger.cs.meta +11 -0
  280. package/Runtime/scripts/HandInteraction/TakeObject.cs +342 -0
  281. package/Runtime/scripts/HandInteraction/TakeObject.cs.meta +11 -0
  282. package/Runtime/scripts/HandInteraction/XRHandsInteractionManager.cs +78 -0
  283. package/Runtime/scripts/HandInteraction/XRHandsInteractionManager.cs.meta +11 -0
  284. package/Runtime/scripts/HandInteraction.meta +8 -0
  285. package/Runtime/scripts/HandVisualizer.cs +567 -0
  286. package/Runtime/scripts/HandVisualizer.cs.meta +11 -0
  287. package/Runtime/scripts/Hmd/BroadcastControlsStatus.cs +90 -0
  288. package/Runtime/scripts/Hmd/BroadcastControlsStatus.cs.meta +11 -0
  289. package/Runtime/scripts/Hmd/DetectUserPresence.cs +39 -0
  290. package/Runtime/scripts/Hmd/DetectUserPresence.cs.meta +11 -0
  291. package/Runtime/scripts/Hmd.meta +8 -0
  292. package/Runtime/scripts/LocomotionManager.cs +110 -0
  293. package/Runtime/scripts/LocomotionManager.cs.meta +11 -0
  294. package/Runtime/scripts/MainCameraTarget.cs +6 -0
  295. package/Runtime/scripts/MainCameraTarget.cs.meta +11 -0
  296. package/Runtime/scripts/Movement/PlayerMovement.cs +98 -0
  297. package/Runtime/scripts/Movement/PlayerMovement.cs.meta +11 -0
  298. package/Runtime/scripts/Movement.meta +8 -0
  299. package/Runtime/scripts/OrientObjectAlongTowardPoint.cs +81 -0
  300. package/Runtime/scripts/OrientObjectAlongTowardPoint.cs.meta +11 -0
  301. package/Runtime/scripts/SnapObject/SnapObject.cs +104 -0
  302. package/Runtime/scripts/SnapObject/SnapObject.cs.meta +11 -0
  303. package/Runtime/scripts/SnapObject/SnapZone.cs +14 -0
  304. package/Runtime/scripts/SnapObject/SnapZone.cs.meta +11 -0
  305. package/Runtime/scripts/SnapObject.meta +8 -0
  306. package/Runtime/scripts/Teleportation/SendTeleportTarget.cs +85 -0
  307. package/Runtime/scripts/Teleportation/SendTeleportTarget.cs.meta +11 -0
  308. package/Runtime/scripts/Teleportation/TeleportManager.cs +54 -0
  309. package/Runtime/scripts/Teleportation/TeleportManager.cs.meta +11 -0
  310. package/Runtime/scripts/Teleportation/TeleportOnEvent.cs +71 -0
  311. package/Runtime/scripts/Teleportation/TeleportOnEvent.cs.meta +11 -0
  312. package/Runtime/scripts/Teleportation.meta +8 -0
  313. package/Runtime/scripts/Tooltips/InputTooltipSO.cs +36 -0
  314. package/Runtime/scripts/Tooltips/InputTooltipSO.cs.meta +11 -0
  315. package/Runtime/scripts/Tooltips.meta +8 -0
  316. package/Runtime/scripts/jeanf.vrplayer.asmdef +29 -0
  317. package/Runtime/scripts/jeanf.vrplayer.asmdef.meta +7 -0
  318. package/Runtime/scripts.meta +8 -0
  319. package/Runtime/xrToolkit/Scripts/ActionBasedControllerManager.cs +568 -0
  320. package/Runtime/xrToolkit/Scripts/ActionBasedControllerManager.cs.meta +11 -0
  321. package/Runtime/xrToolkit/Scripts/BubbleGun.cs +72 -0
  322. package/Runtime/xrToolkit/Scripts/BubbleGun.cs.meta +11 -0
  323. package/Runtime/xrToolkit/Scripts/ComplexCube.cs +51 -0
  324. package/Runtime/xrToolkit/Scripts/ComplexCube.cs.meta +11 -0
  325. package/Runtime/xrToolkit/Scripts/ControllerManager.cs +377 -0
  326. package/Runtime/xrToolkit/Scripts/ControllerManager.cs.meta +11 -0
  327. package/Runtime/xrToolkit/Scripts/LocomotionConfigurationMenu.cs +730 -0
  328. package/Runtime/xrToolkit/Scripts/LocomotionConfigurationMenu.cs.meta +11 -0
  329. package/Runtime/xrToolkit/Scripts/LocomotionSchemeManager.cs +524 -0
  330. package/Runtime/xrToolkit/Scripts/LocomotionSchemeManager.cs.meta +11 -0
  331. package/Runtime/xrToolkit/Scripts/UpdateControlText.cs +41 -0
  332. package/Runtime/xrToolkit/Scripts/UpdateControlText.cs.meta +11 -0
  333. package/Runtime/xrToolkit/Scripts/xr.toolkit.asmdef +17 -0
  334. package/Runtime/xrToolkit/Scripts/xr.toolkit.asmdef.meta +7 -0
  335. package/Runtime/xrToolkit/Scripts.meta +8 -0
  336. package/Runtime/xrToolkit/Shaders/ReticleShader.shader +50 -0
  337. package/Runtime/xrToolkit/Shaders/ReticleShader.shader.meta +9 -0
  338. package/Runtime/xrToolkit/Shaders/SimpleTeleportHighlight.shader +57 -0
  339. package/Runtime/xrToolkit/Shaders/SimpleTeleportHighlight.shader.meta +9 -0
  340. package/Runtime/xrToolkit/Shaders/Unlit-Line-Opaque.shader +79 -0
  341. package/Runtime/xrToolkit/Shaders/Unlit-Line-Opaque.shader.meta +9 -0
  342. package/Runtime/xrToolkit/Shaders/pulsingEffectShader.shader +64 -0
  343. package/Runtime/xrToolkit/Shaders/pulsingEffectShader.shader.meta +9 -0
  344. package/Runtime/xrToolkit/Shaders.meta +8 -0
  345. package/Runtime/xrToolkit.meta +8 -0
  346. package/Runtime.meta +8 -0
  347. package/Samples/HandPoses/DefaultPose.asset +70 -0
  348. package/Samples/HandPoses/DefaultPose.asset.meta +8 -0
  349. package/Samples/HandPoses/OldDefaultPose.asset +60 -0
  350. package/Samples/HandPoses/OldDefaultPose.asset.meta +8 -0
  351. package/Samples/HandPoses.meta +8 -0
  352. package/Samples/Hands/Animations/LeftHand.controller +267 -0
  353. package/Samples/Hands/Animations/LeftHand.controller.meta +8 -0
  354. package/Samples/Hands/Animations.meta +8 -0
  355. package/Samples/Hands/Gloves1DiffusionProfile.asset +25 -0
  356. package/Samples/Hands/Gloves1DiffusionProfile.asset.meta +8 -0
  357. package/Samples/Hands/Mat/Hands_Nails.mat +482 -0
  358. package/Samples/Hands/Mat/Hands_Nails.mat.meta +8 -0
  359. package/Samples/Hands/Mat/Hands_Skin.mat +483 -0
  360. package/Samples/Hands/Mat/Hands_Skin.mat.meta +8 -0
  361. package/Samples/Hands/Mat/SkinDiffusionProfile.asset +25 -0
  362. package/Samples/Hands/Mat/SkinDiffusionProfile.asset.meta +8 -0
  363. package/Samples/Hands/Mat.meta +8 -0
  364. package/Samples/Hands/Models/CC_LefttHand.fbx +0 -0
  365. package/Samples/Hands/Models/CC_LefttHand.fbx.meta +106 -0
  366. package/Samples/Hands/Models/CC_RightHand.fbx +0 -0
  367. package/Samples/Hands/Models/CC_RightHand.fbx.meta +106 -0
  368. package/Samples/Hands/Models.meta +8 -0
  369. package/Samples/Hands/Prefabs/CC_LefttHand.prefab +1058 -0
  370. package/Samples/Hands/Prefabs/CC_LefttHand.prefab.meta +7 -0
  371. package/Samples/Hands/Prefabs/CC_LefttHand_Controller.prefab +294 -0
  372. package/Samples/Hands/Prefabs/CC_LefttHand_Controller.prefab.meta +7 -0
  373. package/Samples/Hands/Prefabs/CC_LefttHand_Controller_Preview.prefab +132 -0
  374. package/Samples/Hands/Prefabs/CC_LefttHand_Controller_Preview.prefab.meta +7 -0
  375. package/Samples/Hands/Prefabs/CC_RightHand.prefab +1010 -0
  376. package/Samples/Hands/Prefabs/CC_RightHand.prefab.meta +7 -0
  377. package/Samples/Hands/Prefabs/CC_RightHand_Controller.prefab +317 -0
  378. package/Samples/Hands/Prefabs/CC_RightHand_Controller.prefab.meta +7 -0
  379. package/Samples/Hands/Prefabs/CC_RightHand_Controller_Preview.prefab +136 -0
  380. package/Samples/Hands/Prefabs/CC_RightHand_Controller_Preview.prefab.meta +7 -0
  381. package/Samples/Hands/Prefabs/Joint.prefab +490 -0
  382. package/Samples/Hands/Prefabs/Joint.prefab.meta +7 -0
  383. package/Samples/Hands/Prefabs/Resources/PoseHelper.prefab +64 -0
  384. package/Samples/Hands/Prefabs/Resources/PoseHelper.prefab.meta +7 -0
  385. package/Samples/Hands/Prefabs/Resources.meta +8 -0
  386. package/Samples/Hands/Prefabs/VelocityPrefab.prefab +131 -0
  387. package/Samples/Hands/Prefabs/VelocityPrefab.prefab.meta +7 -0
  388. package/Samples/Hands/Prefabs.meta +8 -0
  389. package/Samples/Hands/SkinDiffusionProfile.asset +25 -0
  390. package/Samples/Hands/SkinDiffusionProfile.asset.meta +8 -0
  391. package/Samples/Hands/Textures/Eyes/Std_eyes_Pbr_hght.png +0 -0
  392. package/Samples/Hands/Textures/Eyes/Std_eyes_Pbr_hght.png.meta +108 -0
  393. package/Samples/Hands/Textures/Eyes.meta +8 -0
  394. package/Samples/Hands/Textures/G3Plus/Arm_Sss_Mask.png +0 -0
  395. package/Samples/Hands/Textures/G3Plus/Arm_Sss_Mask.png.meta +104 -0
  396. package/Samples/Hands/Textures/G3Plus/Arm_Thickness.png +0 -0
  397. package/Samples/Hands/Textures/G3Plus/Arm_Thickness.png.meta +104 -0
  398. package/Samples/Hands/Textures/G3Plus/Body_Sss_Mask.png +0 -0
  399. package/Samples/Hands/Textures/G3Plus/Body_Sss_Mask.png.meta +104 -0
  400. package/Samples/Hands/Textures/G3Plus/Body_Thickness.png +0 -0
  401. package/Samples/Hands/Textures/G3Plus/Body_Thickness.png.meta +104 -0
  402. package/Samples/Hands/Textures/G3Plus/Head_Sss_Mask.png +0 -0
  403. package/Samples/Hands/Textures/G3Plus/Head_Sss_Mask.png.meta +104 -0
  404. package/Samples/Hands/Textures/G3Plus/Head_Thickness.png +0 -0
  405. package/Samples/Hands/Textures/G3Plus/Head_Thickness.png.meta +104 -0
  406. package/Samples/Hands/Textures/G3Plus/Leg_Sss_Mask.png +0 -0
  407. package/Samples/Hands/Textures/G3Plus/Leg_Sss_Mask.png.meta +104 -0
  408. package/Samples/Hands/Textures/G3Plus/Leg_Thickness.png +0 -0
  409. package/Samples/Hands/Textures/G3Plus/Leg_Thickness.png.meta +104 -0
  410. package/Samples/Hands/Textures/G3Plus.meta +8 -0
  411. package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Hands_ALB.png +0 -0
  412. package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Hands_ALB.png.meta +123 -0
  413. package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Hands_MM.png +0 -0
  414. package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Hands_MM.png.meta +123 -0
  415. package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Hands_NM.png +0 -0
  416. package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Hands_NM.png.meta +123 -0
  417. package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Nail_ALB.png +0 -0
  418. package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Nail_ALB.png.meta +123 -0
  419. package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Nails_MM.png +0 -0
  420. package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Nails_MM.png.meta +123 -0
  421. package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Nails_NM.png +0 -0
  422. package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Nails_NM.png.meta +123 -0
  423. package/Samples/Hands/Textures/Gloves.meta +8 -0
  424. package/Samples/Hands/Textures/Man/Std_Nails_Diffuse.jpg +0 -0
  425. package/Samples/Hands/Textures/Man/Std_Nails_Diffuse.jpg.meta +123 -0
  426. package/Samples/Hands/Textures/Man/Std_Nails_HDRP.png +0 -0
  427. package/Samples/Hands/Textures/Man/Std_Nails_HDRP.png.meta +123 -0
  428. package/Samples/Hands/Textures/Man/Std_Nails_Normal.png +0 -0
  429. package/Samples/Hands/Textures/Man/Std_Nails_Normal.png.meta +123 -0
  430. package/Samples/Hands/Textures/Man/Std_Skin_Arm_Diffuse.jpg +0 -0
  431. package/Samples/Hands/Textures/Man/Std_Skin_Arm_Diffuse.jpg.meta +123 -0
  432. package/Samples/Hands/Textures/Man/Std_Skin_Arm_HDRP.png +0 -0
  433. package/Samples/Hands/Textures/Man/Std_Skin_Arm_HDRP.png.meta +123 -0
  434. package/Samples/Hands/Textures/Man/Std_Skin_Arm_Normal.png +0 -0
  435. package/Samples/Hands/Textures/Man/Std_Skin_Arm_Normal.png.meta +123 -0
  436. package/Samples/Hands/Textures/Man.meta +8 -0
  437. package/Samples/Hands/Textures/Woman/Std_Nails_Diffuse.jpg +0 -0
  438. package/Samples/Hands/Textures/Woman/Std_Nails_Diffuse.jpg.meta +123 -0
  439. package/Samples/Hands/Textures/Woman/Std_Nails_HDRP.png +0 -0
  440. package/Samples/Hands/Textures/Woman/Std_Nails_HDRP.png.meta +123 -0
  441. package/Samples/Hands/Textures/Woman/Std_Nails_Normal.jpg +0 -0
  442. package/Samples/Hands/Textures/Woman/Std_Nails_Normal.jpg.meta +123 -0
  443. package/Samples/Hands/Textures/Woman/Std_Skin_Arm_Diffuse.jpg +0 -0
  444. package/Samples/Hands/Textures/Woman/Std_Skin_Arm_Diffuse.jpg.meta +123 -0
  445. package/Samples/Hands/Textures/Woman/Std_Skin_Arm_HDRP.png +0 -0
  446. package/Samples/Hands/Textures/Woman/Std_Skin_Arm_HDRP.png.meta +123 -0
  447. package/Samples/Hands/Textures/Woman/Std_Skin_Arm_Normal.jpg +0 -0
  448. package/Samples/Hands/Textures/Woman/Std_Skin_Arm_Normal.jpg.meta +123 -0
  449. package/Samples/Hands/Textures/Woman.meta +8 -0
  450. package/Samples/Hands/Textures/skin_detail_map.tif +0 -0
  451. package/Samples/Hands/Textures/skin_detail_map.tif.meta +132 -0
  452. package/Samples/Hands/Textures/skin_detail_map_normal.tif +0 -0
  453. package/Samples/Hands/Textures/skin_detail_map_normal.tif.meta +159 -0
  454. package/Samples/Hands/Textures.meta +8 -0
  455. package/Samples/Hands.meta +8 -0
  456. package/Samples/xrToolkit/InputSettings/.sample.json +4 -0
  457. package/Samples/xrToolkit/InputSettings/XR Device Simulator/.sample.json +4 -0
  458. package/Samples/xrToolkit/InputSettings/XR Device Simulator/XR Device Simulator Controls.inputactions +877 -0
  459. package/Samples/xrToolkit/InputSettings/XR Device Simulator/XR Device Simulator Controls.inputactions.meta +14 -0
  460. package/Samples/xrToolkit/InputSettings/XR Device Simulator/XR Device Simulator.prefab +142 -0
  461. package/Samples/xrToolkit/InputSettings/XR Device Simulator/XR Device Simulator.prefab.meta +7 -0
  462. package/Samples/xrToolkit/InputSettings/XR Device Simulator.meta +8 -0
  463. package/Samples/xrToolkit/InputSettings.meta +8 -0
  464. package/Samples/xrToolkit/InputSystem.inputsettings.asset +26 -0
  465. package/Samples/xrToolkit/InputSystem.inputsettings.asset.meta +8 -0
  466. package/Samples/xrToolkit/Llama/Llama.controller +167 -0
  467. package/Samples/xrToolkit/Llama/Llama.controller.meta +8 -0
  468. package/Samples/xrToolkit/Llama/Llama.fbx +0 -0
  469. package/Samples/xrToolkit/Llama/Llama.fbx.meta +97 -0
  470. package/Samples/xrToolkit/Llama/LlamaMat.mat +342 -0
  471. package/Samples/xrToolkit/Llama/LlamaMat.mat.meta +8 -0
  472. package/Samples/xrToolkit/Llama/Llama_A_Albedo.tif +0 -0
  473. package/Samples/xrToolkit/Llama/Llama_A_Albedo.tif.meta +92 -0
  474. package/Samples/xrToolkit/Llama/Llama_B_Albedo.tif +0 -0
  475. package/Samples/xrToolkit/Llama/Llama_B_Albedo.tif.meta +92 -0
  476. package/Samples/xrToolkit/Llama/Llama_C_Albedo.tif +0 -0
  477. package/Samples/xrToolkit/Llama/Llama_C_Albedo.tif.meta +92 -0
  478. package/Samples/xrToolkit/Llama/Llama_Idle.fbx +0 -0
  479. package/Samples/xrToolkit/Llama/Llama_Idle.fbx.meta +239 -0
  480. package/Samples/xrToolkit/Llama/Llama_MetallicSmoothness.tif +0 -0
  481. package/Samples/xrToolkit/Llama/Llama_MetallicSmoothness.tif.meta +92 -0
  482. package/Samples/xrToolkit/Llama/Llama_Occlsion.tif +0 -0
  483. package/Samples/xrToolkit/Llama/Llama_Occlsion.tif.meta +92 -0
  484. package/Samples/xrToolkit/Llama/llama_Normal.tif +0 -0
  485. package/Samples/xrToolkit/Llama/llama_Normal.tif.meta +92 -0
  486. package/Samples/xrToolkit/Llama.meta +8 -0
  487. package/Samples/xrToolkit/Materials/BubbleMat.mat +343 -0
  488. package/Samples/xrToolkit/Materials/BubbleMat.mat.meta +8 -0
  489. package/Samples/xrToolkit/Materials/ConstructionLight_Mat.mat +342 -0
  490. package/Samples/xrToolkit/Materials/ConstructionLight_Mat.mat.meta +8 -0
  491. package/Samples/xrToolkit/Materials/ControllerMaterial.mat +342 -0
  492. package/Samples/xrToolkit/Materials/ControllerMaterial.mat.meta +8 -0
  493. package/Samples/xrToolkit/Materials/DryWallPainted_Mat.mat +342 -0
  494. package/Samples/xrToolkit/Materials/DryWallPainted_Mat.mat.meta +8 -0
  495. package/Samples/xrToolkit/Materials/DryWall_Mat.mat +342 -0
  496. package/Samples/xrToolkit/Materials/DryWall_Mat.mat.meta +8 -0
  497. package/Samples/xrToolkit/Materials/FloorMat.mat +342 -0
  498. package/Samples/xrToolkit/Materials/FloorMat.mat.meta +8 -0
  499. package/Samples/xrToolkit/Materials/FloorMaterial.mat +343 -0
  500. package/Samples/xrToolkit/Materials/FloorMaterial.mat.meta +8 -0
  501. package/Samples/xrToolkit/Materials/GrabBlockInstantMat.mat +351 -0
  502. package/Samples/xrToolkit/Materials/GrabBlockInstantMat.mat.meta +8 -0
  503. package/Samples/xrToolkit/Materials/GrabBlockMat.mat +351 -0
  504. package/Samples/xrToolkit/Materials/GrabBlockMat.mat.meta +8 -0
  505. package/Samples/xrToolkit/Materials/GrabBlockVelocityMat.mat +351 -0
  506. package/Samples/xrToolkit/Materials/GrabBlockVelocityMat.mat.meta +8 -0
  507. package/Samples/xrToolkit/Materials/Ground_Mat.mat +342 -0
  508. package/Samples/xrToolkit/Materials/Ground_Mat.mat.meta +8 -0
  509. package/Samples/xrToolkit/Materials/Hammer_Mat.mat +342 -0
  510. package/Samples/xrToolkit/Materials/Hammer_Mat.mat.meta +8 -0
  511. package/Samples/xrToolkit/Materials/HandMaterial.mat +342 -0
  512. package/Samples/xrToolkit/Materials/HandMaterial.mat.meta +8 -0
  513. package/Samples/xrToolkit/Materials/HardHat_Mat.mat +342 -0
  514. package/Samples/xrToolkit/Materials/HardHat_Mat.mat.meta +8 -0
  515. package/Samples/xrToolkit/Materials/Jigsaw_Mat.mat +342 -0
  516. package/Samples/xrToolkit/Materials/Jigsaw_Mat.mat.meta +8 -0
  517. package/Samples/xrToolkit/Materials/LightBulb_Mat.mat +342 -0
  518. package/Samples/xrToolkit/Materials/LightBulb_Mat.mat.meta +8 -0
  519. package/Samples/xrToolkit/Materials/LineVisual.mat +322 -0
  520. package/Samples/xrToolkit/Materials/LineVisual.mat.meta +8 -0
  521. package/Samples/xrToolkit/Materials/Liquid_Mat.mat +352 -0
  522. package/Samples/xrToolkit/Materials/Liquid_Mat.mat.meta +8 -0
  523. package/Samples/xrToolkit/Materials/Metal_Blue_Simple_Mat.mat +342 -0
  524. package/Samples/xrToolkit/Materials/Metal_Blue_Simple_Mat.mat.meta +8 -0
  525. package/Samples/xrToolkit/Materials/Metal_Simple_Mat.mat +342 -0
  526. package/Samples/xrToolkit/Materials/Metal_Simple_Mat.mat.meta +8 -0
  527. package/Samples/xrToolkit/Materials/OBS_Mat.mat +342 -0
  528. package/Samples/xrToolkit/Materials/OBS_Mat.mat.meta +8 -0
  529. package/Samples/xrToolkit/Materials/PaintBrush_Mat.mat +342 -0
  530. package/Samples/xrToolkit/Materials/PaintBrush_Mat.mat.meta +8 -0
  531. package/Samples/xrToolkit/Materials/PaintCan_mat.mat +342 -0
  532. package/Samples/xrToolkit/Materials/PaintCan_mat.mat.meta +8 -0
  533. package/Samples/xrToolkit/Materials/PaintLabel_Mat.mat +342 -0
  534. package/Samples/xrToolkit/Materials/PaintLabel_Mat.mat.meta +8 -0
  535. package/Samples/xrToolkit/Materials/Plastic_Black_Mat.mat +342 -0
  536. package/Samples/xrToolkit/Materials/Plastic_Black_Mat.mat.meta +8 -0
  537. package/Samples/xrToolkit/Materials/Plastic_Gray_Mat.mat +342 -0
  538. package/Samples/xrToolkit/Materials/Plastic_Gray_Mat.mat.meta +8 -0
  539. package/Samples/xrToolkit/Materials/Plastic_Ridges_Mat.mat +342 -0
  540. package/Samples/xrToolkit/Materials/Plastic_Ridges_Mat.mat.meta +8 -0
  541. package/Samples/xrToolkit/Materials/Plastic_Rough_Mat.mat +342 -0
  542. package/Samples/xrToolkit/Materials/Plastic_Rough_Mat.mat.meta +8 -0
  543. package/Samples/xrToolkit/Materials/Plastic_Transparent.mat +343 -0
  544. package/Samples/xrToolkit/Materials/Plastic_Transparent.mat.meta +8 -0
  545. package/Samples/xrToolkit/Materials/Plastic_White_Mat.mat +342 -0
  546. package/Samples/xrToolkit/Materials/Plastic_White_Mat.mat.meta +8 -0
  547. package/Samples/xrToolkit/Materials/Plastic_Yellow_Mat.mat +342 -0
  548. package/Samples/xrToolkit/Materials/Plastic_Yellow_Mat.mat.meta +8 -0
  549. package/Samples/xrToolkit/Materials/PulseEngines.mat +316 -0
  550. package/Samples/xrToolkit/Materials/PulseEngines.mat.meta +8 -0
  551. package/Samples/xrToolkit/Materials/ReticleMaterial.mat +344 -0
  552. package/Samples/xrToolkit/Materials/ReticleMaterial.mat.meta +8 -0
  553. package/Samples/xrToolkit/Materials/SimpleTeleportHighlight.mat +316 -0
  554. package/Samples/xrToolkit/Materials/SimpleTeleportHighlight.mat.meta +8 -0
  555. package/Samples/xrToolkit/Materials/SocketMat.mat +343 -0
  556. package/Samples/xrToolkit/Materials/SocketMat.mat.meta +8 -0
  557. package/Samples/xrToolkit/Materials/Strap_Mat.mat +342 -0
  558. package/Samples/xrToolkit/Materials/Strap_Mat.mat.meta +8 -0
  559. package/Samples/xrToolkit/Materials/Stud_Mat.mat +342 -0
  560. package/Samples/xrToolkit/Materials/Stud_Mat.mat.meta +8 -0
  561. package/Samples/xrToolkit/Materials/TableMat.mat +342 -0
  562. package/Samples/xrToolkit/Materials/TableMat.mat.meta +8 -0
  563. package/Samples/xrToolkit/Materials/TeleportAnchor.mat +322 -0
  564. package/Samples/xrToolkit/Materials/TeleportAnchor.mat.meta +8 -0
  565. package/Samples/xrToolkit/Materials/TeleportHoverMat.mat +342 -0
  566. package/Samples/xrToolkit/Materials/TeleportHoverMat.mat.meta +8 -0
  567. package/Samples/xrToolkit/Materials/TeleportPlatform.mat +342 -0
  568. package/Samples/xrToolkit/Materials/TeleportPlatform.mat.meta +8 -0
  569. package/Samples/xrToolkit/Materials/WhiteSmooth.mat +351 -0
  570. package/Samples/xrToolkit/Materials/WhiteSmooth.mat.meta +8 -0
  571. package/Samples/xrToolkit/Materials.meta +8 -0
  572. package/Samples/xrToolkit/Models/.mayaSwatches/arrowhead.mlt.swatches +0 -0
  573. package/Samples/xrToolkit/Models/Brush_Low.fbx +0 -0
  574. package/Samples/xrToolkit/Models/Brush_Low.fbx.meta +115 -0
  575. package/Samples/xrToolkit/Models/ConstructionLight_Low.fbx +0 -0
  576. package/Samples/xrToolkit/Models/ConstructionLight_Low.fbx.meta +154 -0
  577. package/Samples/xrToolkit/Models/GroundPlane.fbx +0 -0
  578. package/Samples/xrToolkit/Models/GroundPlane.fbx.meta +97 -0
  579. package/Samples/xrToolkit/Models/Hammer_Low.fbx +0 -0
  580. package/Samples/xrToolkit/Models/Hammer_Low.fbx.meta +115 -0
  581. package/Samples/xrToolkit/Models/Horizon.FBX +0 -0
  582. package/Samples/xrToolkit/Models/Horizon.FBX.meta +97 -0
  583. package/Samples/xrToolkit/Models/Jigsaw_Low.fbx +0 -0
  584. package/Samples/xrToolkit/Models/Jigsaw_Low.fbx.meta +115 -0
  585. package/Samples/xrToolkit/Models/MagneticLevel_Low.fbx +0 -0
  586. package/Samples/xrToolkit/Models/MagneticLevel_Low.fbx.meta +124 -0
  587. package/Samples/xrToolkit/Models/PaintBucket_Low.fbx +0 -0
  588. package/Samples/xrToolkit/Models/PaintBucket_Low.fbx.meta +160 -0
  589. package/Samples/xrToolkit/Models/SafetyGoggles_Low.fbx +0 -0
  590. package/Samples/xrToolkit/Models/SafetyGoggles_Low.fbx.meta +124 -0
  591. package/Samples/xrToolkit/Models/SafetyHat_Low.fbx +0 -0
  592. package/Samples/xrToolkit/Models/SafetyHat_Low.fbx.meta +115 -0
  593. package/Samples/xrToolkit/Models/Small_Plane.fbx +0 -0
  594. package/Samples/xrToolkit/Models/Small_Plane.fbx.meta +115 -0
  595. package/Samples/xrToolkit/Models/StoneFlat.fbx +0 -0
  596. package/Samples/xrToolkit/Models/StoneFlat.fbx.meta +97 -0
  597. package/Samples/xrToolkit/Models/StoneRound.fbx +0 -0
  598. package/Samples/xrToolkit/Models/StoneRound.fbx.meta +97 -0
  599. package/Samples/xrToolkit/Models/Stud.fbx +0 -0
  600. package/Samples/xrToolkit/Models/Stud.fbx.meta +136 -0
  601. package/Samples/xrToolkit/Models/TreeBox.fbx +0 -0
  602. package/Samples/xrToolkit/Models/TreeBox.fbx.meta +97 -0
  603. package/Samples/xrToolkit/Models/TreeRound.FBX +0 -0
  604. package/Samples/xrToolkit/Models/TreeRound.FBX.meta +97 -0
  605. package/Samples/xrToolkit/Models/Workbench.fbx +0 -0
  606. package/Samples/xrToolkit/Models/Workbench.fbx.meta +196 -0
  607. package/Samples/xrToolkit/Models/Workbench_Low.fbx +0 -0
  608. package/Samples/xrToolkit/Models/Workbench_Low.fbx.meta +196 -0
  609. package/Samples/xrToolkit/Models/Workshop_Set.fbx +0 -0
  610. package/Samples/xrToolkit/Models/Workshop_Set.fbx.meta +196 -0
  611. package/Samples/xrToolkit/Models/controller.fbx +0 -0
  612. package/Samples/xrToolkit/Models/controller.fbx.meta +97 -0
  613. package/Samples/xrToolkit/Models/directionArrow.fbx +0 -0
  614. package/Samples/xrToolkit/Models/directionArrow.fbx.meta +97 -0
  615. package/Samples/xrToolkit/Models/fileAnchorWall.fbx +0 -0
  616. package/Samples/xrToolkit/Models/fileAnchorWall.fbx.meta +97 -0
  617. package/Samples/xrToolkit/Models/floatingAnchor.fbx +0 -0
  618. package/Samples/xrToolkit/Models/floatingAnchor.fbx.meta +97 -0
  619. package/Samples/xrToolkit/Models/lowPolyIsland.fbx +0 -0
  620. package/Samples/xrToolkit/Models/lowPolyIsland.fbx.meta +2575 -0
  621. package/Samples/xrToolkit/Models/reticle.fbx +0 -0
  622. package/Samples/xrToolkit/Models/reticle.fbx.meta +120 -0
  623. package/Samples/xrToolkit/Models/spaceShip.fbx +0 -0
  624. package/Samples/xrToolkit/Models/spaceShip.fbx.meta +1594 -0
  625. package/Samples/xrToolkit/Models/teleportHightlight.fbx +0 -0
  626. package/Samples/xrToolkit/Models/teleportHightlight.fbx.meta +97 -0
  627. package/Samples/xrToolkit/Models/teleportPlatform.fbx +0 -0
  628. package/Samples/xrToolkit/Models/teleportPlatform.fbx.meta +97 -0
  629. package/Samples/xrToolkit/Models.meta +8 -0
  630. package/Samples/xrToolkit/Plugins/Android/AndroidManifest.xml +17 -0
  631. package/Samples/xrToolkit/Plugins/Android/AndroidManifest.xml.meta +7 -0
  632. package/Samples/xrToolkit/Plugins/Android.meta +8 -0
  633. package/Samples/xrToolkit/Plugins.meta +8 -0
  634. package/Samples/xrToolkit/Prefabs/Anchor.prefab +229 -0
  635. package/Samples/xrToolkit/Prefabs/Anchor.prefab.meta +7 -0
  636. package/Samples/xrToolkit/Prefabs/BubbleParticlePrefab.prefab +4783 -0
  637. package/Samples/xrToolkit/Prefabs/BubbleParticlePrefab.prefab.meta +7 -0
  638. package/Samples/xrToolkit/Prefabs/ComplexGrabCube.prefab +234 -0
  639. package/Samples/xrToolkit/Prefabs/ComplexGrabCube.prefab.meta +7 -0
  640. package/Samples/xrToolkit/Prefabs/DeprecatedXROriginDemo.prefab +1697 -0
  641. package/Samples/xrToolkit/Prefabs/DeprecatedXROriginDemo.prefab.meta +7 -0
  642. package/Samples/xrToolkit/Prefabs/InstantCube.prefab +221 -0
  643. package/Samples/xrToolkit/Prefabs/InstantCube.prefab.meta +7 -0
  644. package/Samples/xrToolkit/Prefabs/InteractionZones/ComplexInteractions.prefab +2941 -0
  645. package/Samples/xrToolkit/Prefabs/InteractionZones/ComplexInteractions.prefab.meta +7 -0
  646. package/Samples/xrToolkit/Prefabs/InteractionZones/Locomotion Configuration Area.prefab +6398 -0
  647. package/Samples/xrToolkit/Prefabs/InteractionZones/Locomotion Configuration Area.prefab.meta +7 -0
  648. package/Samples/xrToolkit/Prefabs/InteractionZones/LocomotionArea.prefab +965 -0
  649. package/Samples/xrToolkit/Prefabs/InteractionZones/LocomotionArea.prefab.meta +7 -0
  650. package/Samples/xrToolkit/Prefabs/InteractionZones/SnapInteractions.prefab +3811 -0
  651. package/Samples/xrToolkit/Prefabs/InteractionZones/SnapInteractions.prefab.meta +7 -0
  652. package/Samples/xrToolkit/Prefabs/InteractionZones/StartingArea.prefab +2840 -0
  653. package/Samples/xrToolkit/Prefabs/InteractionZones/StartingArea.prefab.meta +7 -0
  654. package/Samples/xrToolkit/Prefabs/InteractionZones/UIArea.prefab +3210 -0
  655. package/Samples/xrToolkit/Prefabs/InteractionZones/UIArea.prefab.meta +7 -0
  656. package/Samples/xrToolkit/Prefabs/InteractionZones.meta +8 -0
  657. package/Samples/xrToolkit/Prefabs/KinematicCube.prefab +221 -0
  658. package/Samples/xrToolkit/Prefabs/KinematicCube.prefab.meta +7 -0
  659. package/Samples/xrToolkit/Prefabs/LlamaBubbleGunPrefab.prefab +1424 -0
  660. package/Samples/xrToolkit/Prefabs/LlamaBubbleGunPrefab.prefab.meta +7 -0
  661. package/Samples/xrToolkit/Prefabs/Locomotion System.prefab +82 -0
  662. package/Samples/xrToolkit/Prefabs/Locomotion System.prefab.meta +7 -0
  663. package/Samples/xrToolkit/Prefabs/Props.prefab +2200 -0
  664. package/Samples/xrToolkit/Prefabs/Props.prefab.meta +7 -0
  665. package/Samples/xrToolkit/Prefabs/Reticle.prefab +81 -0
  666. package/Samples/xrToolkit/Prefabs/Reticle.prefab.meta +7 -0
  667. package/Samples/xrToolkit/Prefabs/TeleportAnchor.prefab +328 -0
  668. package/Samples/xrToolkit/Prefabs/TeleportAnchor.prefab.meta +7 -0
  669. package/Samples/xrToolkit/Prefabs/TeleportAnchorPlatform.prefab +704 -0
  670. package/Samples/xrToolkit/Prefabs/TeleportAnchorPlatform.prefab.meta +7 -0
  671. package/Samples/xrToolkit/Prefabs/TeleportArea.prefab +954 -0
  672. package/Samples/xrToolkit/Prefabs/TeleportArea.prefab.meta +7 -0
  673. package/Samples/xrToolkit/Prefabs/VelocityTrackedCube.prefab +221 -0
  674. package/Samples/xrToolkit/Prefabs/VelocityTrackedCube.prefab.meta +7 -0
  675. package/Samples/xrToolkit/Prefabs/Workshop Set.prefab +435 -0
  676. package/Samples/xrToolkit/Prefabs/Workshop Set.prefab.meta +7 -0
  677. package/Samples/xrToolkit/Prefabs/XROriginDemo.prefab +2726 -0
  678. package/Samples/xrToolkit/Prefabs/XROriginDemo.prefab.meta +7 -0
  679. package/Samples/xrToolkit/Prefabs/controller.prefab +303 -0
  680. package/Samples/xrToolkit/Prefabs/controller.prefab.meta +7 -0
  681. package/Samples/xrToolkit/Prefabs/floatingAnchor.prefab +648 -0
  682. package/Samples/xrToolkit/Prefabs/floatingAnchor.prefab.meta +7 -0
  683. package/Samples/xrToolkit/Prefabs/teleportReticle.prefab +128 -0
  684. package/Samples/xrToolkit/Prefabs/teleportReticle.prefab.meta +7 -0
  685. package/Samples/xrToolkit/Prefabs.meta +8 -0
  686. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/LightingData.asset +0 -0
  687. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/LightingData.asset.meta +8 -0
  688. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-0_comp_dir.png +0 -0
  689. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-0_comp_dir.png.meta +92 -0
  690. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-0_comp_light.exr +0 -0
  691. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-0_comp_light.exr.meta +117 -0
  692. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-1_comp_dir.png +0 -0
  693. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-1_comp_dir.png.meta +92 -0
  694. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-1_comp_light.exr +0 -0
  695. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-1_comp_light.exr.meta +117 -0
  696. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-0.exr +0 -0
  697. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-0.exr.meta +92 -0
  698. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-1.exr +0 -0
  699. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-1.exr.meta +92 -0
  700. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-2.exr +0 -0
  701. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-2.exr.meta +92 -0
  702. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-3.exr +0 -0
  703. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-3.exr.meta +92 -0
  704. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-4.exr +0 -0
  705. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-4.exr.meta +92 -0
  706. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-5.exr +0 -0
  707. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-5.exr.meta +92 -0
  708. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-6.exr +0 -0
  709. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-6.exr.meta +92 -0
  710. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo.meta +8 -0
  711. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo.unity +10487 -0
  712. package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo.unity.meta +7 -0
  713. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/LightingData.asset +0 -0
  714. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/LightingData.asset.meta +8 -0
  715. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-0_comp_dir.png +0 -0
  716. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-0_comp_dir.png.meta +92 -0
  717. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-0_comp_light.exr +0 -0
  718. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-0_comp_light.exr.meta +117 -0
  719. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-1_comp_dir.png +0 -0
  720. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-1_comp_dir.png.meta +92 -0
  721. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-1_comp_light.exr +0 -0
  722. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-1_comp_light.exr.meta +117 -0
  723. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-0.exr +0 -0
  724. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-0.exr.meta +92 -0
  725. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-1.exr +0 -0
  726. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-1.exr.meta +92 -0
  727. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-2.exr +0 -0
  728. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-2.exr.meta +92 -0
  729. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-3.exr +0 -0
  730. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-3.exr.meta +92 -0
  731. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-4.exr +0 -0
  732. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-4.exr.meta +92 -0
  733. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-5.exr +0 -0
  734. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-5.exr.meta +92 -0
  735. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-6.exr +0 -0
  736. package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-6.exr.meta +92 -0
  737. package/Samples/xrToolkit/Scenes/WorldInteractionDemo.meta +8 -0
  738. package/Samples/xrToolkit/Scenes/WorldInteractionDemo.unity +14118 -0
  739. package/Samples/xrToolkit/Scenes/WorldInteractionDemo.unity.meta +7 -0
  740. package/Samples/xrToolkit/Scenes.meta +8 -0
  741. package/Samples/xrToolkit/Textures/Concrete/Ground_Albedo.tif +0 -0
  742. package/Samples/xrToolkit/Textures/Concrete/Ground_Albedo.tif.meta +140 -0
  743. package/Samples/xrToolkit/Textures/Concrete/Ground_MetallicOcculusionSmoothness.tif +0 -0
  744. package/Samples/xrToolkit/Textures/Concrete/Ground_MetallicOcculusionSmoothness.tif.meta +140 -0
  745. package/Samples/xrToolkit/Textures/Concrete/Ground_Normal.tif +0 -0
  746. package/Samples/xrToolkit/Textures/Concrete/Ground_Normal.tif.meta +140 -0
  747. package/Samples/xrToolkit/Textures/Concrete.meta +8 -0
  748. package/Samples/xrToolkit/Textures/Drywall/DrywallPainted_Normal.tif +0 -0
  749. package/Samples/xrToolkit/Textures/Drywall/DrywallPainted_Normal.tif.meta +140 -0
  750. package/Samples/xrToolkit/Textures/Drywall/Drywall_Albedo.tif +0 -0
  751. package/Samples/xrToolkit/Textures/Drywall/Drywall_Albedo.tif.meta +140 -0
  752. package/Samples/xrToolkit/Textures/Drywall/Drywall_AlbedoSmoothness.tif +0 -0
  753. package/Samples/xrToolkit/Textures/Drywall/Drywall_AlbedoSmoothness.tif.meta +140 -0
  754. package/Samples/xrToolkit/Textures/Drywall/Drywall_Normal.tif +0 -0
  755. package/Samples/xrToolkit/Textures/Drywall/Drywall_Normal.tif.meta +140 -0
  756. package/Samples/xrToolkit/Textures/Drywall.meta +8 -0
  757. package/Samples/xrToolkit/Textures/GridBox_NewTex_Albedo.tga +0 -0
  758. package/Samples/xrToolkit/Textures/GridBox_NewTex_Albedo.tga.meta +92 -0
  759. package/Samples/xrToolkit/Textures/Metal/Metal_Albedo.tif +0 -0
  760. package/Samples/xrToolkit/Textures/Metal/Metal_Albedo.tif.meta +140 -0
  761. package/Samples/xrToolkit/Textures/Metal/Metal_MetallicSmoothness.tif +0 -0
  762. package/Samples/xrToolkit/Textures/Metal/Metal_MetallicSmoothness.tif.meta +140 -0
  763. package/Samples/xrToolkit/Textures/Metal/Metal_Normal.tif +0 -0
  764. package/Samples/xrToolkit/Textures/Metal/Metal_Normal.tif.meta +140 -0
  765. package/Samples/xrToolkit/Textures/Metal.meta +8 -0
  766. package/Samples/xrToolkit/Textures/Plastic/Elastic_MetallicOcculusionSmoothness.tif +0 -0
  767. package/Samples/xrToolkit/Textures/Plastic/Elastic_MetallicOcculusionSmoothness.tif.meta +140 -0
  768. package/Samples/xrToolkit/Textures/Plastic/Elastic_Normal.tif +0 -0
  769. package/Samples/xrToolkit/Textures/Plastic/Elastic_Normal.tif.meta +140 -0
  770. package/Samples/xrToolkit/Textures/Plastic/PlasticRidges_Albedo.tif +0 -0
  771. package/Samples/xrToolkit/Textures/Plastic/PlasticRidges_Albedo.tif.meta +140 -0
  772. package/Samples/xrToolkit/Textures/Plastic/PlasticRidges_MetallicOcculusionSmoothness.tif +0 -0
  773. package/Samples/xrToolkit/Textures/Plastic/PlasticRidges_MetallicOcculusionSmoothness.tif.meta +140 -0
  774. package/Samples/xrToolkit/Textures/Plastic/PlasticRidges_Normal.tif +0 -0
  775. package/Samples/xrToolkit/Textures/Plastic/PlasticRidges_Normal.tif.meta +140 -0
  776. package/Samples/xrToolkit/Textures/Plastic/PlasticRough_Albedo.tif +0 -0
  777. package/Samples/xrToolkit/Textures/Plastic/PlasticRough_Albedo.tif.meta +140 -0
  778. package/Samples/xrToolkit/Textures/Plastic/PlasticRough_MetallicOcculusionSmoothness.tif +0 -0
  779. package/Samples/xrToolkit/Textures/Plastic/PlasticRough_MetallicOcculusionSmoothness.tif.meta +140 -0
  780. package/Samples/xrToolkit/Textures/Plastic/Plastic_AlbedoSmoothness.tif +0 -0
  781. package/Samples/xrToolkit/Textures/Plastic/Plastic_AlbedoSmoothness.tif.meta +140 -0
  782. package/Samples/xrToolkit/Textures/Plastic/Plastic_Normal.tif +0 -0
  783. package/Samples/xrToolkit/Textures/Plastic/Plastic_Normal.tif.meta +140 -0
  784. package/Samples/xrToolkit/Textures/Plastic.meta +8 -0
  785. package/Samples/xrToolkit/Textures/Props/Construction_Light/ConstructionLight_Albedo.tif +0 -0
  786. package/Samples/xrToolkit/Textures/Props/Construction_Light/ConstructionLight_Albedo.tif.meta +140 -0
  787. package/Samples/xrToolkit/Textures/Props/Construction_Light/ConstructionLight_MetallicOcculusionSmoothness.tif +0 -0
  788. package/Samples/xrToolkit/Textures/Props/Construction_Light/ConstructionLight_MetallicOcculusionSmoothness.tif.meta +140 -0
  789. package/Samples/xrToolkit/Textures/Props/Construction_Light.meta +8 -0
  790. package/Samples/xrToolkit/Textures/Props/Hammer/Hammer_Albedo.tif +0 -0
  791. package/Samples/xrToolkit/Textures/Props/Hammer/Hammer_Albedo.tif.meta +140 -0
  792. package/Samples/xrToolkit/Textures/Props/Hammer/Hammer_MetallicOcculusionSmoothness.tif +0 -0
  793. package/Samples/xrToolkit/Textures/Props/Hammer/Hammer_MetallicOcculusionSmoothness.tif.meta +140 -0
  794. package/Samples/xrToolkit/Textures/Props/Hammer/Hammer_Normal.tif +0 -0
  795. package/Samples/xrToolkit/Textures/Props/Hammer/Hammer_Normal.tif.meta +140 -0
  796. package/Samples/xrToolkit/Textures/Props/Hammer.meta +8 -0
  797. package/Samples/xrToolkit/Textures/Props/HardHat/SafetyHat_Albedo.tif +0 -0
  798. package/Samples/xrToolkit/Textures/Props/HardHat/SafetyHat_Albedo.tif.meta +140 -0
  799. package/Samples/xrToolkit/Textures/Props/HardHat/SafetyHat_MetallicOcculusionSmoothness.tif +0 -0
  800. package/Samples/xrToolkit/Textures/Props/HardHat/SafetyHat_MetallicOcculusionSmoothness.tif.meta +140 -0
  801. package/Samples/xrToolkit/Textures/Props/HardHat/SafetyHat_Normal.tif +0 -0
  802. package/Samples/xrToolkit/Textures/Props/HardHat/SafetyHat_Normal.tif.meta +140 -0
  803. package/Samples/xrToolkit/Textures/Props/HardHat.meta +8 -0
  804. package/Samples/xrToolkit/Textures/Props/Jigsaw/Jigsaw_Albedo.tif +0 -0
  805. package/Samples/xrToolkit/Textures/Props/Jigsaw/Jigsaw_Albedo.tif.meta +140 -0
  806. package/Samples/xrToolkit/Textures/Props/Jigsaw/Jigsaw_MetallicOcculusionSmoothness.tif +0 -0
  807. package/Samples/xrToolkit/Textures/Props/Jigsaw/Jigsaw_MetallicOcculusionSmoothness.tif.meta +140 -0
  808. package/Samples/xrToolkit/Textures/Props/Jigsaw/Jigsaw_Normal.tif +0 -0
  809. package/Samples/xrToolkit/Textures/Props/Jigsaw/Jigsaw_Normal.tif.meta +140 -0
  810. package/Samples/xrToolkit/Textures/Props/Jigsaw.meta +8 -0
  811. package/Samples/xrToolkit/Textures/Props/Paint/Paint1G_Albedo.tif +0 -0
  812. package/Samples/xrToolkit/Textures/Props/Paint/Paint1G_Albedo.tif.meta +140 -0
  813. package/Samples/xrToolkit/Textures/Props/Paint/Paint1G_MetallicOcculusionSmoothness.tif +0 -0
  814. package/Samples/xrToolkit/Textures/Props/Paint/Paint1G_MetallicOcculusionSmoothness.tif.meta +140 -0
  815. package/Samples/xrToolkit/Textures/Props/Paint/Paint1G_Normal.tif +0 -0
  816. package/Samples/xrToolkit/Textures/Props/Paint/Paint1G_Normal.tif.meta +140 -0
  817. package/Samples/xrToolkit/Textures/Props/Paint/Paint5G_AlbedoSmoothness.tif +0 -0
  818. package/Samples/xrToolkit/Textures/Props/Paint/Paint5G_AlbedoSmoothness.tif.meta +140 -0
  819. package/Samples/xrToolkit/Textures/Props/Paint/Paintbrush_Albedo.tif +0 -0
  820. package/Samples/xrToolkit/Textures/Props/Paint/Paintbrush_Albedo.tif.meta +140 -0
  821. package/Samples/xrToolkit/Textures/Props/Paint/Paintbrush_MetallicOcculusionSmoothness.tif +0 -0
  822. package/Samples/xrToolkit/Textures/Props/Paint/Paintbrush_MetallicOcculusionSmoothness.tif.meta +140 -0
  823. package/Samples/xrToolkit/Textures/Props/Paint/Paintbrush_Normal.tif +0 -0
  824. package/Samples/xrToolkit/Textures/Props/Paint/Paintbrush_Normal.tif.meta +140 -0
  825. package/Samples/xrToolkit/Textures/Props/Paint.meta +8 -0
  826. package/Samples/xrToolkit/Textures/Props.meta +8 -0
  827. package/Samples/xrToolkit/Textures/TemplateEnvironmentSwatch.png +0 -0
  828. package/Samples/xrToolkit/Textures/TemplateEnvironmentSwatch.png.meta +92 -0
  829. package/Samples/xrToolkit/Textures/Wood/OBS_Albedo.tif +0 -0
  830. package/Samples/xrToolkit/Textures/Wood/OBS_Albedo.tif.meta +140 -0
  831. package/Samples/xrToolkit/Textures/Wood/OBS_MetallicOcculusionSmoothness.tif +0 -0
  832. package/Samples/xrToolkit/Textures/Wood/OBS_MetallicOcculusionSmoothness.tif.meta +140 -0
  833. package/Samples/xrToolkit/Textures/Wood/OBS_Normal.tif +0 -0
  834. package/Samples/xrToolkit/Textures/Wood/OBS_Normal.tif.meta +140 -0
  835. package/Samples/xrToolkit/Textures/Wood/Plywood_Albedo.tif +0 -0
  836. package/Samples/xrToolkit/Textures/Wood/Plywood_Albedo.tif.meta +140 -0
  837. package/Samples/xrToolkit/Textures/Wood/Plywood_MetallicOcculusionSmoothness.tif +0 -0
  838. package/Samples/xrToolkit/Textures/Wood/Plywood_MetallicOcculusionSmoothness.tif.meta +140 -0
  839. package/Samples/xrToolkit/Textures/Wood/Plywood_Normal.tif +0 -0
  840. package/Samples/xrToolkit/Textures/Wood/Plywood_Normal.tif.meta +140 -0
  841. package/Samples/xrToolkit/Textures/Wood.meta +8 -0
  842. package/Samples/xrToolkit/Textures.meta +8 -0
  843. package/Samples/xrToolkit/VR Examples/Fonts/Roboto-Medium SDF.asset +2721 -0
  844. package/Samples/xrToolkit/VR Examples/Fonts/Roboto-Medium SDF.asset.meta +8 -0
  845. package/Samples/xrToolkit/VR Examples/Fonts.meta +8 -0
  846. package/Samples/xrToolkit/VR Examples/Materials/NavyDarkGrid.mat +149 -0
  847. package/Samples/xrToolkit/VR Examples/Materials/NavyDarkGrid.mat.meta +8 -0
  848. package/Samples/xrToolkit/VR Examples/Materials/NavyDarkSmooth.mat +149 -0
  849. package/Samples/xrToolkit/VR Examples/Materials/NavyDarkSmooth.mat.meta +8 -0
  850. package/Samples/xrToolkit/VR Examples/Materials/NavyGrid.mat +149 -0
  851. package/Samples/xrToolkit/VR Examples/Materials/NavyGrid.mat.meta +8 -0
  852. package/Samples/xrToolkit/VR Examples/Materials/NavySmooth.mat +149 -0
  853. package/Samples/xrToolkit/VR Examples/Materials/NavySmooth.mat.meta +8 -0
  854. package/Samples/xrToolkit/VR Examples/Materials/PinkSmooth.mat +148 -0
  855. package/Samples/xrToolkit/VR Examples/Materials/PinkSmooth.mat.meta +8 -0
  856. package/Samples/xrToolkit/VR Examples/Materials/SocketCannotHover.mat +139 -0
  857. package/Samples/xrToolkit/VR Examples/Materials/SocketCannotHover.mat.meta +8 -0
  858. package/Samples/xrToolkit/VR Examples/Materials/SocketHover.mat +139 -0
  859. package/Samples/xrToolkit/VR Examples/Materials/SocketHover.mat.meta +8 -0
  860. package/Samples/xrToolkit/VR Examples/Materials/SocketWall.mat +135 -0
  861. package/Samples/xrToolkit/VR Examples/Materials/SocketWall.mat.meta +8 -0
  862. package/Samples/xrToolkit/VR Examples/Materials/Teleportation.mat +137 -0
  863. package/Samples/xrToolkit/VR Examples/Materials/Teleportation.mat.meta +8 -0
  864. package/Samples/xrToolkit/VR Examples/Materials.meta +8 -0
  865. package/Samples/xrToolkit/VR Examples/Models/teleportPlatform.fbx +0 -0
  866. package/Samples/xrToolkit/VR Examples/Models/teleportPlatform.fbx.meta +97 -0
  867. package/Samples/xrToolkit/VR Examples/Models.meta +8 -0
  868. package/Samples/xrToolkit/VR Examples/Prefabs/Anchor.prefab +229 -0
  869. package/Samples/xrToolkit/VR Examples/Prefabs/Anchor.prefab.meta +7 -0
  870. package/Samples/xrToolkit/VR Examples/Prefabs/Environment.prefab +108 -0
  871. package/Samples/xrToolkit/VR Examples/Prefabs/Environment.prefab.meta +7 -0
  872. package/Samples/xrToolkit/VR Examples/Prefabs/Lights.prefab +224 -0
  873. package/Samples/xrToolkit/VR Examples/Prefabs/Lights.prefab.meta +7 -0
  874. package/Samples/xrToolkit/VR Examples/Prefabs/Scene Introduction.prefab +312 -0
  875. package/Samples/xrToolkit/VR Examples/Prefabs/Scene Introduction.prefab.meta +7 -0
  876. package/Samples/xrToolkit/VR Examples/Prefabs/TooltipBlack.prefab +311 -0
  877. package/Samples/xrToolkit/VR Examples/Prefabs/TooltipBlack.prefab.meta +7 -0
  878. package/Samples/xrToolkit/VR Examples/Prefabs/TooltipBlackLarge.prefab +310 -0
  879. package/Samples/xrToolkit/VR Examples/Prefabs/TooltipBlackLarge.prefab.meta +7 -0
  880. package/Samples/xrToolkit/VR Examples/Prefabs/TooltipWhite.prefab +312 -0
  881. package/Samples/xrToolkit/VR Examples/Prefabs/TooltipWhite.prefab.meta +7 -0
  882. package/Samples/xrToolkit/VR Examples/Prefabs/XR Interaction Manager.prefab +45 -0
  883. package/Samples/xrToolkit/VR Examples/Prefabs/XR Interaction Manager.prefab.meta +7 -0
  884. package/Samples/xrToolkit/VR Examples/Prefabs.meta +8 -0
  885. package/Samples/xrToolkit/VR Examples/Scenes/Grab Interaction/LightingData.asset +0 -0
  886. package/Samples/xrToolkit/VR Examples/Scenes/Grab Interaction/LightingData.asset.meta +8 -0
  887. package/Samples/xrToolkit/VR Examples/Scenes/Grab Interaction/ReflectionProbe-0.exr +0 -0
  888. package/Samples/xrToolkit/VR Examples/Scenes/Grab Interaction/ReflectionProbe-0.exr.meta +92 -0
  889. package/Samples/xrToolkit/VR Examples/Scenes/Grab Interaction.meta +8 -0
  890. package/Samples/xrToolkit/VR Examples/Scenes/Grab Interaction.unity +2018 -0
  891. package/Samples/xrToolkit/VR Examples/Scenes/Grab Interaction.unity.meta +7 -0
  892. package/Samples/xrToolkit/VR Examples/Scenes/Initial Tracking/LightingData.asset +0 -0
  893. package/Samples/xrToolkit/VR Examples/Scenes/Initial Tracking/LightingData.asset.meta +8 -0
  894. package/Samples/xrToolkit/VR Examples/Scenes/Initial Tracking/ReflectionProbe-0.exr +0 -0
  895. package/Samples/xrToolkit/VR Examples/Scenes/Initial Tracking/ReflectionProbe-0.exr.meta +92 -0
  896. package/Samples/xrToolkit/VR Examples/Scenes/Initial Tracking.meta +8 -0
  897. package/Samples/xrToolkit/VR Examples/Scenes/Initial Tracking.unity +1639 -0
  898. package/Samples/xrToolkit/VR Examples/Scenes/Initial Tracking.unity.meta +7 -0
  899. package/Samples/xrToolkit/VR Examples/Scenes/Socket Interaction/LightingData.asset +0 -0
  900. package/Samples/xrToolkit/VR Examples/Scenes/Socket Interaction/LightingData.asset.meta +8 -0
  901. package/Samples/xrToolkit/VR Examples/Scenes/Socket Interaction/ReflectionProbe-0.exr +0 -0
  902. package/Samples/xrToolkit/VR Examples/Scenes/Socket Interaction/ReflectionProbe-0.exr.meta +92 -0
  903. package/Samples/xrToolkit/VR Examples/Scenes/Socket Interaction.meta +8 -0
  904. package/Samples/xrToolkit/VR Examples/Scenes/Socket Interaction.unity +2491 -0
  905. package/Samples/xrToolkit/VR Examples/Scenes/Socket Interaction.unity.meta +7 -0
  906. package/Samples/xrToolkit/VR Examples/Scenes/Teleportation/LightingData.asset +0 -0
  907. package/Samples/xrToolkit/VR Examples/Scenes/Teleportation/LightingData.asset.meta +8 -0
  908. package/Samples/xrToolkit/VR Examples/Scenes/Teleportation/ReflectionProbe-0.exr +0 -0
  909. package/Samples/xrToolkit/VR Examples/Scenes/Teleportation/ReflectionProbe-0.exr.meta +92 -0
  910. package/Samples/xrToolkit/VR Examples/Scenes/Teleportation.meta +8 -0
  911. package/Samples/xrToolkit/VR Examples/Scenes/Teleportation.unity +6239 -0
  912. package/Samples/xrToolkit/VR Examples/Scenes/Teleportation.unity.meta +7 -0
  913. package/Samples/xrToolkit/VR Examples/Scenes/UI Interaction/LightingData.asset +0 -0
  914. package/Samples/xrToolkit/VR Examples/Scenes/UI Interaction/LightingData.asset.meta +8 -0
  915. package/Samples/xrToolkit/VR Examples/Scenes/UI Interaction/ReflectionProbe-0.exr +0 -0
  916. package/Samples/xrToolkit/VR Examples/Scenes/UI Interaction/ReflectionProbe-0.exr.meta +92 -0
  917. package/Samples/xrToolkit/VR Examples/Scenes/UI Interaction.meta +8 -0
  918. package/Samples/xrToolkit/VR Examples/Scenes/UI Interaction.unity +5163 -0
  919. package/Samples/xrToolkit/VR Examples/Scenes/UI Interaction.unity.meta +7 -0
  920. package/Samples/xrToolkit/VR Examples/Scenes.meta +8 -0
  921. package/Samples/xrToolkit/VR Examples/Textures/GridEmissive.png +0 -0
  922. package/Samples/xrToolkit/VR Examples/Textures/GridEmissive.png.meta +92 -0
  923. package/Samples/xrToolkit/VR Examples/Textures/SwatchNavyAlbedo.png +0 -0
  924. package/Samples/xrToolkit/VR Examples/Textures/SwatchNavyAlbedo.png.meta +92 -0
  925. package/Samples/xrToolkit/VR Examples/Textures/SwatchNavyDarkAlbedo.png +0 -0
  926. package/Samples/xrToolkit/VR Examples/Textures/SwatchNavyDarkAlbedo.png.meta +92 -0
  927. package/Samples/xrToolkit/VR Examples/Textures/SwatchPinkAlbedo.png +0 -0
  928. package/Samples/xrToolkit/VR Examples/Textures/SwatchPinkAlbedo.png.meta +92 -0
  929. package/Samples/xrToolkit/VR Examples/Textures/SwatchWhiteAlbedo.png +0 -0
  930. package/Samples/xrToolkit/VR Examples/Textures/SwatchWhiteAlbedo.png.meta +92 -0
  931. package/Samples/xrToolkit/VR Examples/Textures.meta +8 -0
  932. package/Samples/xrToolkit/VR Examples.meta +8 -0
  933. package/Samples/xrToolkit/XR/Loaders/Oculus Loader.asset +14 -0
  934. package/Samples/xrToolkit/XR/Loaders/Oculus Loader.asset.meta +8 -0
  935. package/Samples/xrToolkit/XR/Loaders/Windows MR Loader.asset +14 -0
  936. package/Samples/xrToolkit/XR/Loaders/Windows MR Loader.asset.meta +8 -0
  937. package/Samples/xrToolkit/XR/Loaders.meta +8 -0
  938. package/Samples/xrToolkit/XR/Settings/Oculus Settings.asset +23 -0
  939. package/Samples/xrToolkit/XR/Settings/Oculus Settings.asset.meta +8 -0
  940. package/Samples/xrToolkit/XR/Settings/Windows MR Package Settings.asset +47 -0
  941. package/Samples/xrToolkit/XR/Settings/Windows MR Package Settings.asset.meta +8 -0
  942. package/Samples/xrToolkit/XR/Settings.meta +8 -0
  943. package/Samples/xrToolkit/XR/XRGeneralSettings.asset +173 -0
  944. package/Samples/xrToolkit/XR/XRGeneralSettings.asset.meta +8 -0
  945. package/Samples/xrToolkit/XR.meta +8 -0
  946. package/Samples/xrToolkit/XRI/Settings/XRInteractionEditorSettings.asset +16 -0
  947. package/Samples/xrToolkit/XRI/Settings/XRInteractionEditorSettings.asset.meta +8 -0
  948. package/Samples/xrToolkit/XRI/Settings.meta +8 -0
  949. package/Samples/xrToolkit/XRI.meta +8 -0
  950. package/Samples/xrToolkit/XR_UniversalRenderPipelineAsset.asset +136 -0
  951. package/Samples/xrToolkit/XR_UniversalRenderPipelineAsset.asset.meta +8 -0
  952. package/Samples/xrToolkit/XR_UniversalRenderPipelineAsset_Renderer.asset +38 -0
  953. package/Samples/xrToolkit/XR_UniversalRenderPipelineAsset_Renderer.asset.meta +8 -0
  954. package/Samples/xrToolkit.meta +8 -0
  955. package/Samples.meta +8 -0
  956. package/package.json +52 -0
  957. package/package.json.meta +7 -0
@@ -0,0 +1,567 @@
1
+ using System;
2
+ using Unity.XR.CoreUtils;
3
+ using UnityEngine.XR.Management;
4
+
5
+ namespace UnityEngine.XR.Hands.Samples.VisualizerSample
6
+ {
7
+ public class HandVisualizer : MonoBehaviour
8
+ {
9
+ [SerializeField]
10
+ [Tooltip("If this is enabled, this component will enable the Input System internal feature flag 'USE_OPTIMIZED_CONTROLS'. You must have at least version 1.5.0 of the Input System and have its backend enabled for this to take effect.")]
11
+ bool m_UseOptimizedControls = true;
12
+
13
+ [SerializeField]
14
+ XROrigin m_Origin;
15
+
16
+ [SerializeField]
17
+ GameObject m_LeftHandMesh;
18
+
19
+ [SerializeField]
20
+ GameObject m_RightHandMesh;
21
+
22
+ [SerializeField]
23
+ Material m_HandMeshMaterial;
24
+
25
+ public bool drawMeshes
26
+ {
27
+ get => m_DrawMeshes;
28
+ set
29
+ {
30
+ m_DrawMeshes = value;
31
+
32
+ if (m_LeftHandGameObjects != null)
33
+ m_LeftHandGameObjects.ToggleDrawMesh(value);
34
+
35
+ if (m_RightHandGameObjects != null)
36
+ m_RightHandGameObjects.ToggleDrawMesh(value);
37
+ }
38
+ }
39
+ [SerializeField]
40
+ bool m_DrawMeshes;
41
+
42
+ [SerializeField]
43
+ GameObject m_DebugDrawPrefab;
44
+
45
+ public bool debugDrawJoints
46
+ {
47
+ get => m_DebugDrawJoints;
48
+ set
49
+ {
50
+ m_DebugDrawJoints = value;
51
+
52
+ if (m_LeftHandGameObjects != null)
53
+ m_LeftHandGameObjects.ToggleDebugDrawJoints(value);
54
+
55
+ if (m_RightHandGameObjects != null)
56
+ m_RightHandGameObjects.ToggleDebugDrawJoints(value);
57
+ }
58
+ }
59
+ [SerializeField]
60
+ bool m_DebugDrawJoints;
61
+
62
+ [SerializeField]
63
+ GameObject m_VelocityPrefab;
64
+
65
+ public enum VelocityType
66
+ {
67
+ Linear,
68
+ Angular,
69
+ None
70
+ }
71
+ public VelocityType velocityType
72
+ {
73
+ get => m_VelocityType;
74
+ set
75
+ {
76
+ m_VelocityType = value;
77
+
78
+ if (m_LeftHandGameObjects != null)
79
+ m_LeftHandGameObjects.SetVelocityType(value);
80
+
81
+ if (m_RightHandGameObjects != null)
82
+ m_RightHandGameObjects.SetVelocityType(value);
83
+ }
84
+ }
85
+ [SerializeField]
86
+ VelocityType m_VelocityType;
87
+
88
+ void Awake()
89
+ {
90
+ #if ENABLE_INPUT_SYSTEM
91
+ if (m_UseOptimizedControls)
92
+ InputSystem.InputSystem.settings.SetInternalFeatureFlag("USE_OPTIMIZED_CONTROLS", true);
93
+ #endif // ENABLE_INPUT_SYSTEM
94
+ }
95
+
96
+ void Update() => TryEnsureInitialized();
97
+
98
+ void OnEnable()
99
+ {
100
+ m_LeftHandGameObjects?.OnEnable();
101
+ m_RightHandGameObjects?.OnEnable();
102
+ }
103
+
104
+ void OnDisable()
105
+ {
106
+ if (m_Subsystem != null)
107
+ {
108
+ m_Subsystem.trackingAcquired -= OnTrackingAcquired;
109
+ m_Subsystem.trackingLost -= OnTrackingLost;
110
+ m_Subsystem.updatedHands -= OnUpdatedHands;
111
+ m_Subsystem = null;
112
+ }
113
+
114
+ m_LeftHandGameObjects?.OnDisable();
115
+ m_RightHandGameObjects?.OnDisable();
116
+ }
117
+
118
+ void OnDestroy()
119
+ {
120
+ if (m_LeftHandGameObjects != null)
121
+ {
122
+ m_LeftHandGameObjects.OnDestroy();
123
+ m_LeftHandGameObjects = null;
124
+ }
125
+
126
+ if (m_RightHandGameObjects != null)
127
+ {
128
+ m_RightHandGameObjects.OnDestroy();
129
+ m_RightHandGameObjects = null;
130
+ }
131
+ }
132
+
133
+ bool TryEnsureInitialized()
134
+ {
135
+ if (m_Subsystem != null)
136
+ return true;
137
+
138
+ m_Subsystem = XRGeneralSettings.Instance?.Manager?.activeLoader?.GetLoadedSubsystem<XRHandSubsystem>();
139
+ if (m_Subsystem == null)
140
+ return false;
141
+
142
+ if (m_LeftHandGameObjects == null)
143
+ {
144
+ var leftHandTracked = m_Subsystem.leftHand.isTracked;
145
+ m_LeftHandGameObjects = new HandGameObjects(true, transform, m_LeftHandMesh, m_HandMeshMaterial, m_DebugDrawPrefab, m_VelocityPrefab);
146
+ m_LeftHandGameObjects.ForceToggleDrawMesh(m_DrawMeshes && leftHandTracked);
147
+ m_LeftHandGameObjects.ForceToggleDebugDrawJoints(m_DebugDrawJoints && leftHandTracked);
148
+ m_LeftHandGameObjects.ForceSetVelocityType(leftHandTracked ? m_VelocityType : VelocityType.None);
149
+ }
150
+
151
+ var rightHandTracked = m_Subsystem.rightHand.isTracked;
152
+ if (m_RightHandGameObjects == null)
153
+ {
154
+ m_RightHandGameObjects = new HandGameObjects(false, transform, m_RightHandMesh, m_HandMeshMaterial, m_DebugDrawPrefab, m_VelocityPrefab);
155
+ m_RightHandGameObjects.ForceToggleDrawMesh(m_DrawMeshes && rightHandTracked);
156
+ m_RightHandGameObjects.ForceToggleDebugDrawJoints(m_DebugDrawJoints && rightHandTracked);
157
+ m_RightHandGameObjects.ForceSetVelocityType(rightHandTracked ? m_VelocityType : VelocityType.None);
158
+ }
159
+
160
+ m_Subsystem.trackingAcquired += OnTrackingAcquired;
161
+ m_Subsystem.trackingLost += OnTrackingLost;
162
+ m_Subsystem.updatedHands += OnUpdatedHands;
163
+ return true;
164
+ }
165
+
166
+ void OnTrackingAcquired(XRHand hand)
167
+ {
168
+ switch (hand.handedness)
169
+ {
170
+ case Handedness.Left:
171
+ m_LeftHandGameObjects.ForceToggleDrawMesh(m_DrawMeshes);
172
+ m_LeftHandGameObjects.ForceToggleDebugDrawJoints(m_DebugDrawJoints);
173
+ m_LeftHandGameObjects.ForceSetVelocityType(m_VelocityType);
174
+ break;
175
+
176
+ case Handedness.Right:
177
+ m_RightHandGameObjects.ForceToggleDrawMesh(m_DrawMeshes);
178
+ m_RightHandGameObjects.ForceToggleDebugDrawJoints(m_DebugDrawJoints);
179
+ m_RightHandGameObjects.ForceSetVelocityType(m_VelocityType);
180
+ break;
181
+ }
182
+ }
183
+
184
+ void OnTrackingLost(XRHand hand)
185
+ {
186
+ switch (hand.handedness)
187
+ {
188
+ case Handedness.Left:
189
+ m_LeftHandGameObjects.ForceToggleDrawMesh(false);
190
+ m_LeftHandGameObjects.ForceToggleDebugDrawJoints(false);
191
+ m_LeftHandGameObjects.ForceSetVelocityType(VelocityType.None);
192
+ break;
193
+
194
+ case Handedness.Right:
195
+ m_RightHandGameObjects.ForceToggleDrawMesh(false);
196
+ m_RightHandGameObjects.ForceToggleDebugDrawJoints(false);
197
+ m_RightHandGameObjects.ForceSetVelocityType(VelocityType.None);
198
+ break;
199
+ }
200
+ }
201
+
202
+ void OnUpdatedHands(XRHandSubsystem subsystem, XRHandSubsystem.UpdateSuccessFlags updateSuccessFlags, XRHandSubsystem.UpdateType updateType)
203
+ {
204
+ // we have no game logic depending on the Transforms, so early out here
205
+ // (add game logic before this return here, directly querying from
206
+ // m_Subsystem.leftHand and m_Subsystem.rightHand using GetJoint on each hand)
207
+ if (updateType == XRHandSubsystem.UpdateType.Dynamic)
208
+ return;
209
+
210
+ // account for changes in the Inspector
211
+ #if UNITY_EDITOR
212
+ var leftHandTracked = subsystem.leftHand.isTracked;
213
+ m_LeftHandGameObjects.ToggleDrawMesh(m_DrawMeshes && leftHandTracked);
214
+ m_LeftHandGameObjects.ToggleDebugDrawJoints(m_DebugDrawJoints && leftHandTracked);
215
+ m_LeftHandGameObjects.SetVelocityType(leftHandTracked ? m_VelocityType : VelocityType.None);
216
+
217
+ var rightHandTracked = subsystem.rightHand.isTracked;
218
+ m_RightHandGameObjects.ToggleDrawMesh(m_DrawMeshes && rightHandTracked);
219
+ m_RightHandGameObjects.ToggleDebugDrawJoints(m_DebugDrawJoints && rightHandTracked);
220
+ m_RightHandGameObjects.SetVelocityType(rightHandTracked ? m_VelocityType : VelocityType.None);
221
+ #endif
222
+
223
+ if ((updateSuccessFlags & XRHandSubsystem.UpdateSuccessFlags.LeftHandRootPose) != XRHandSubsystem.UpdateSuccessFlags.None)
224
+ m_LeftHandGameObjects.UpdateRootPose(subsystem.leftHand);
225
+
226
+ if ((updateSuccessFlags & XRHandSubsystem.UpdateSuccessFlags.LeftHandJoints) != XRHandSubsystem.UpdateSuccessFlags.None)
227
+ m_LeftHandGameObjects.UpdateJoints(m_Origin, m_Subsystem.leftHand);
228
+
229
+ if ((updateSuccessFlags & XRHandSubsystem.UpdateSuccessFlags.RightHandRootPose) != XRHandSubsystem.UpdateSuccessFlags.None)
230
+ m_RightHandGameObjects.UpdateRootPose(subsystem.rightHand);
231
+
232
+ if ((updateSuccessFlags & XRHandSubsystem.UpdateSuccessFlags.RightHandJoints) != XRHandSubsystem.UpdateSuccessFlags.None)
233
+ m_RightHandGameObjects.UpdateJoints(m_Origin, m_Subsystem.rightHand);
234
+ }
235
+
236
+ class HandGameObjects
237
+ {
238
+ GameObject m_HandRoot;
239
+ GameObject m_DrawJointsParent;
240
+
241
+ Transform[] m_JointXforms = new Transform[XRHandJointID.EndMarker.ToIndex()];
242
+ GameObject[] m_DrawJoints = new GameObject[XRHandJointID.EndMarker.ToIndex()];
243
+ GameObject[] m_VelocityParents = new GameObject[XRHandJointID.EndMarker.ToIndex()];
244
+ LineRenderer[] m_Lines = new LineRenderer[XRHandJointID.EndMarker.ToIndex()];
245
+
246
+ bool m_DrawMesh;
247
+ bool m_DebugDrawJoints;
248
+ VelocityType m_VelocityType;
249
+
250
+ Vector3[] m_LinePointsReuse = new Vector3[2];
251
+ const float k_LineWidth = 0.005f;
252
+
253
+ public HandGameObjects(
254
+ bool isLeft,
255
+ Transform parent,
256
+ GameObject meshPrefab,
257
+ Material meshMaterial,
258
+ GameObject debugDrawPrefab,
259
+ GameObject velocityPrefab)
260
+ {
261
+ void AssignJoint(
262
+ XRHandJointID jointId,
263
+ Transform jointXform,
264
+ Transform drawJointsParent)
265
+ {
266
+ int jointIndex = jointId.ToIndex();
267
+ m_JointXforms[jointIndex] = jointXform;
268
+
269
+ m_DrawJoints[jointIndex] = GameObject.Instantiate(debugDrawPrefab);
270
+ m_DrawJoints[jointIndex].transform.parent = drawJointsParent;
271
+ m_DrawJoints[jointIndex].name = jointId.ToString();
272
+
273
+ m_VelocityParents[jointIndex] = GameObject.Instantiate(velocityPrefab);
274
+ m_VelocityParents[jointIndex].transform.parent = jointXform;
275
+
276
+ m_Lines[jointIndex] = m_DrawJoints[jointIndex].GetComponent<LineRenderer>();
277
+ m_Lines[jointIndex].startWidth = m_Lines[jointIndex].endWidth = k_LineWidth;
278
+ m_LinePointsReuse[0] = m_LinePointsReuse[1] = jointXform.position;
279
+ m_Lines[jointIndex].SetPositions(m_LinePointsReuse);
280
+ }
281
+
282
+ m_HandRoot = GameObject.Instantiate(meshPrefab);
283
+ m_HandRoot.transform.parent = parent;
284
+ m_HandRoot.transform.localPosition = Vector3.zero;
285
+ m_HandRoot.transform.localRotation = Quaternion.identity;
286
+
287
+ Transform wristRootXform = null;
288
+ for (int childIndex = 0; childIndex < m_HandRoot.transform.childCount; ++childIndex)
289
+ {
290
+ var child = m_HandRoot.transform.GetChild(childIndex);
291
+ if (child.gameObject.name.EndsWith(XRHandJointID.Wrist.ToString()))
292
+ wristRootXform = child;
293
+ else if (child.gameObject.name.EndsWith("Hand"))
294
+ child.GetComponent<SkinnedMeshRenderer>().sharedMaterial = meshMaterial;
295
+ }
296
+
297
+ m_DrawJointsParent = new GameObject();
298
+ m_DrawJointsParent.transform.parent = parent;
299
+ m_DrawJointsParent.transform.localPosition = Vector3.zero;
300
+ m_DrawJointsParent.transform.localRotation = Quaternion.identity;
301
+ m_DrawJointsParent.name = (isLeft ? "Left" : "Right") + "HandDebugDrawJoints";
302
+
303
+ AssignJoint(XRHandJointID.Wrist, wristRootXform, m_DrawJointsParent.transform);
304
+ for (int childIndex = 0; childIndex < wristRootXform.childCount; ++childIndex)
305
+ {
306
+ var child = wristRootXform.GetChild(childIndex);
307
+
308
+ if (child.name.EndsWith(XRHandJointID.Palm.ToString()))
309
+ {
310
+ AssignJoint(XRHandJointID.Palm, child, m_DrawJointsParent.transform);
311
+ continue;
312
+ }
313
+
314
+ for (int fingerIndex = (int)XRHandFingerID.Thumb;
315
+ fingerIndex <= (int)XRHandFingerID.Little;
316
+ ++fingerIndex)
317
+ {
318
+ var fingerId = (XRHandFingerID)fingerIndex;
319
+
320
+ var jointIdFront = fingerId.GetFrontJointID();
321
+ if (!child.name.EndsWith(jointIdFront.ToString()))
322
+ continue;
323
+
324
+ AssignJoint(jointIdFront, child, m_DrawJointsParent.transform);
325
+ var lastChild = child;
326
+
327
+ int jointIndexBack = fingerId.GetBackJointID().ToIndex();
328
+ for (int jointIndex = jointIdFront.ToIndex() + 1;
329
+ jointIndex <= jointIndexBack;
330
+ ++jointIndex)
331
+ {
332
+ Transform nextChild = null;
333
+ for (int nextChildIndex = 0; nextChildIndex < lastChild.childCount; ++nextChildIndex)
334
+ {
335
+ nextChild = lastChild.GetChild(nextChildIndex);
336
+ if (nextChild.name.EndsWith(XRHandJointIDUtility.FromIndex(jointIndex).ToString()))
337
+ {
338
+ lastChild = nextChild;
339
+ break;
340
+ }
341
+ }
342
+
343
+ if (!lastChild.name.EndsWith(XRHandJointIDUtility.FromIndex(jointIndex).ToString()))
344
+ throw new InvalidOperationException("Hand transform hierarchy not set correctly - couldn't find " + XRHandJointIDUtility.FromIndex(jointIndex).ToString() + " joint!");
345
+
346
+ var jointId = XRHandJointIDUtility.FromIndex(jointIndex);
347
+ AssignJoint(jointId, lastChild, m_DrawJointsParent.transform);
348
+ }
349
+ }
350
+ }
351
+
352
+ for (int fingerIndex = (int)XRHandFingerID.Thumb;
353
+ fingerIndex <= (int)XRHandFingerID.Little;
354
+ ++fingerIndex)
355
+ {
356
+ var fingerId = (XRHandFingerID)fingerIndex;
357
+
358
+ var jointId = fingerId.GetFrontJointID();
359
+ if (m_JointXforms[jointId.ToIndex()] == null)
360
+ Debug.LogWarning("Hand transform hierarchy not set correctly - couldn't find " + jointId.ToString() + " joint!");
361
+ }
362
+ }
363
+
364
+ public void OnDestroy()
365
+ {
366
+ GameObject.Destroy(m_HandRoot);
367
+ m_HandRoot = null;
368
+
369
+ for (int jointIndex = 0; jointIndex < m_DrawJoints.Length; ++jointIndex)
370
+ {
371
+ GameObject.Destroy(m_DrawJoints[jointIndex]);
372
+ m_DrawJoints[jointIndex] = null;
373
+ }
374
+
375
+ for (int jointIndex = 0; jointIndex < m_VelocityParents.Length; ++jointIndex)
376
+ {
377
+ GameObject.Destroy(m_VelocityParents[jointIndex]);
378
+ m_VelocityParents[jointIndex] = null;
379
+ }
380
+
381
+ GameObject.Destroy(m_DrawJointsParent);
382
+ m_DrawJointsParent = null;
383
+ }
384
+
385
+ public void OnEnable()
386
+ {
387
+ if (m_DrawMesh)
388
+ ForceToggleDrawMeshNoCache(true);
389
+
390
+ if (m_DebugDrawJoints)
391
+ ForceToggleDebugDrawJointsNoCache(true);
392
+
393
+ if (m_VelocityType != VelocityType.None)
394
+ ForceSetVelocityTypeNoCache(m_VelocityType);
395
+ }
396
+
397
+ public void OnDisable()
398
+ {
399
+ if (m_DrawMesh)
400
+ ForceToggleDrawMeshNoCache(false);
401
+
402
+ if (m_DebugDrawJoints)
403
+ ForceToggleDebugDrawJointsNoCache(false);
404
+
405
+ if (m_VelocityType != VelocityType.None)
406
+ ForceSetVelocityTypeNoCache(VelocityType.None);
407
+ }
408
+
409
+ public void ToggleDrawMesh(bool drawMesh)
410
+ {
411
+ if (drawMesh != m_DrawMesh)
412
+ ForceToggleDrawMesh(drawMesh);
413
+ }
414
+
415
+ public void ForceToggleDrawMesh(bool drawMesh)
416
+ {
417
+ m_DrawMesh = drawMesh;
418
+ ForceToggleDrawMeshNoCache(drawMesh);
419
+ }
420
+
421
+ void ForceToggleDrawMeshNoCache(bool drawMesh)
422
+ {
423
+ for (int childIndex = 0; childIndex < m_HandRoot.transform.childCount; ++childIndex)
424
+ {
425
+ var xform = m_HandRoot.transform.GetChild(childIndex);
426
+ if (xform.TryGetComponent<SkinnedMeshRenderer>(out var renderer))
427
+ renderer.enabled = drawMesh;
428
+ }
429
+ }
430
+
431
+ public void ToggleDebugDrawJoints(bool debugDrawJoints)
432
+ {
433
+ if (debugDrawJoints != m_DebugDrawJoints)
434
+ ForceToggleDebugDrawJoints(debugDrawJoints);
435
+ }
436
+
437
+ public void ForceToggleDebugDrawJoints(bool debugDrawJoints)
438
+ {
439
+ m_DebugDrawJoints = debugDrawJoints;
440
+ ForceToggleDebugDrawJointsNoCache(debugDrawJoints);
441
+ }
442
+
443
+ void ForceToggleDebugDrawJointsNoCache(bool debugDrawJoints)
444
+ {
445
+ for (int jointIndex = 0; jointIndex < m_DrawJoints.Length; ++jointIndex)
446
+ {
447
+ ToggleRenderers<MeshRenderer>(debugDrawJoints, m_DrawJoints[jointIndex].transform);
448
+ m_Lines[jointIndex].enabled = debugDrawJoints;
449
+ }
450
+
451
+ m_Lines[0].enabled = false;
452
+ }
453
+
454
+ public void SetVelocityType(VelocityType velocityType)
455
+ {
456
+ if (velocityType != m_VelocityType)
457
+ ForceSetVelocityType(velocityType);
458
+ }
459
+
460
+ public void ForceSetVelocityType(VelocityType velocityType)
461
+ {
462
+ m_VelocityType = velocityType;
463
+ ForceSetVelocityTypeNoCache(velocityType);
464
+ }
465
+
466
+ void ForceSetVelocityTypeNoCache(VelocityType velocityType)
467
+ {
468
+ for (int jointIndex = 0; jointIndex < m_VelocityParents.Length; ++jointIndex)
469
+ ToggleRenderers<LineRenderer>(velocityType != VelocityType.None, m_VelocityParents[jointIndex].transform);
470
+ }
471
+
472
+ public void UpdateRootPose(XRHand hand)
473
+ {
474
+ var xform = m_JointXforms[XRHandJointID.Wrist.ToIndex()];
475
+ xform.localPosition = hand.rootPose.position;
476
+ xform.localRotation = hand.rootPose.rotation;
477
+ }
478
+
479
+ public void UpdateJoints(XROrigin origin, XRHand hand)
480
+ {
481
+ var originPose = new Pose(origin.transform.position, origin.transform.rotation);
482
+
483
+ var wristPose = Pose.identity;
484
+ UpdateJoint(originPose, hand.GetJoint(XRHandJointID.Wrist), ref wristPose);
485
+ UpdateJoint(originPose, hand.GetJoint(XRHandJointID.Palm), ref wristPose, false);
486
+
487
+ for (int fingerIndex = (int)XRHandFingerID.Thumb;
488
+ fingerIndex <= (int)XRHandFingerID.Little;
489
+ ++fingerIndex)
490
+ {
491
+ var parentPose = wristPose;
492
+ var fingerId = (XRHandFingerID)fingerIndex;
493
+
494
+ int jointIndexBack = fingerId.GetBackJointID().ToIndex();
495
+ for (int jointIndex = fingerId.GetFrontJointID().ToIndex();
496
+ jointIndex <= jointIndexBack;
497
+ ++jointIndex)
498
+ {
499
+ if (m_JointXforms[jointIndex] != null)
500
+ UpdateJoint(originPose, hand.GetJoint(XRHandJointIDUtility.FromIndex(jointIndex)), ref parentPose);
501
+ }
502
+ }
503
+ }
504
+
505
+ void UpdateJoint(
506
+ Pose originPose,
507
+ XRHandJoint joint,
508
+ ref Pose parentPose,
509
+ bool cacheParentPose = true)
510
+ {
511
+ int jointIndex = joint.id.ToIndex();
512
+ var xform = m_JointXforms[jointIndex];
513
+ if (xform == null || !joint.TryGetPose(out var pose))
514
+ return;
515
+
516
+ m_DrawJoints[jointIndex].transform.localPosition = pose.position;
517
+ m_DrawJoints[jointIndex].transform.localRotation = pose.rotation;
518
+
519
+ if (m_DebugDrawJoints && joint.id != XRHandJointID.Wrist)
520
+ {
521
+ m_LinePointsReuse[0] = parentPose.GetTransformedBy(originPose).position;
522
+ m_LinePointsReuse[1] = pose.GetTransformedBy(originPose).position;
523
+ m_Lines[jointIndex].SetPositions(m_LinePointsReuse);
524
+ }
525
+
526
+ var inverseParentRotation = Quaternion.Inverse(parentPose.rotation);
527
+ xform.localPosition = inverseParentRotation * (pose.position - parentPose.position);
528
+ xform.localRotation = inverseParentRotation * pose.rotation;
529
+ if (cacheParentPose)
530
+ parentPose = pose;
531
+
532
+ if (m_VelocityType != VelocityType.None && m_VelocityParents[jointIndex].TryGetComponent<LineRenderer>(out var renderer))
533
+ {
534
+ m_VelocityParents[jointIndex].transform.localPosition = Vector3.zero;
535
+ m_VelocityParents[jointIndex].transform.localRotation = Quaternion.identity;
536
+
537
+ m_LinePointsReuse[0] = m_LinePointsReuse[1] = m_VelocityParents[jointIndex].transform.position;
538
+ if (m_VelocityType == VelocityType.Linear)
539
+ {
540
+ if (joint.TryGetLinearVelocity(out var velocity))
541
+ m_LinePointsReuse[1] += velocity;
542
+ }
543
+ else if (m_VelocityType == VelocityType.Angular)
544
+ {
545
+ if (joint.TryGetAngularVelocity(out var velocity))
546
+ m_LinePointsReuse[1] += 0.05f * velocity.normalized;
547
+ }
548
+
549
+ renderer.SetPositions(m_LinePointsReuse);
550
+ }
551
+ }
552
+
553
+ static void ToggleRenderers<TRenderer>(bool toggle, Transform xform)
554
+ where TRenderer : Renderer
555
+ {
556
+ if (xform.TryGetComponent<TRenderer>(out var renderer))
557
+ renderer.enabled = toggle;
558
+
559
+ for (int childIndex = 0; childIndex < xform.childCount; ++childIndex)
560
+ ToggleRenderers<TRenderer>(toggle, xform.GetChild(childIndex));
561
+ }
562
+ }
563
+
564
+ XRHandSubsystem m_Subsystem;
565
+ HandGameObjects m_LeftHandGameObjects, m_RightHandGameObjects;
566
+ }
567
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: f6f530ee378eaa24784420377f6c68e1
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,90 @@
1
+ using jeanf.EventSystem;
2
+ using System;
3
+ using UnityEngine;
4
+ using UnityEngine.InputSystem;
5
+
6
+ namespace jeanf.vrplayer
7
+ {
8
+ public class BroadcastControlsStatus : MonoBehaviour, IDebugBehaviour
9
+ {
10
+ public delegate void SendControlSchemeDelegate(ControlScheme controlScheme);
11
+ public static SendControlSchemeDelegate SendControlScheme;
12
+
13
+ public bool isDebug
14
+ {
15
+ get => _isDebug;
16
+ set => _isDebug = value;
17
+ }
18
+ [SerializeField] private bool _isDebug = false;
19
+
20
+ public enum ControlScheme
21
+ {
22
+ KeyboardMouse,
23
+ XR,
24
+ Gamepad
25
+ }
26
+
27
+ public static ControlScheme controlScheme;
28
+
29
+ [SerializeField] public PlayerInput playerInput;
30
+
31
+ [Header("Broadcasting on:")]
32
+ [SerializeField] private BoolEventChannelSO hmdStateChannel;
33
+ [SerializeField] VoidEventChannelSO activeControlScheme;
34
+
35
+
36
+ private void Awake()
37
+ {
38
+ SetCurrentControlSchemeOnSwitch();
39
+ }
40
+ private void OnEnable()
41
+ {
42
+ playerInput.onControlsChanged += ctx => SetCurrentControlSchemeOnSwitch();
43
+ }
44
+
45
+ private void SetCurrentControlSchemeOnSwitch()
46
+ {
47
+ switch (playerInput.currentControlScheme)
48
+ {
49
+ case "Keyboard&Mouse":
50
+ controlScheme = ControlScheme.KeyboardMouse;
51
+ activeControlScheme.RaiseEvent();
52
+ break;
53
+ case "Gamepad":
54
+ controlScheme = ControlScheme.Gamepad;
55
+ activeControlScheme.RaiseEvent();
56
+ break;
57
+ case "XR":
58
+ controlScheme = ControlScheme.XR;
59
+ activeControlScheme.RaiseEvent();
60
+ break;
61
+ }
62
+
63
+ SendControlScheme?.Invoke(controlScheme);
64
+
65
+ }
66
+
67
+ private void OnDisable() => Unsubscribe();
68
+ private void OnDestroy() => Unsubscribe();
69
+
70
+ private void Start()
71
+ {
72
+ hmdStateChannel.RaiseEvent(GetHMDState());
73
+ }
74
+
75
+ private void Unsubscribe()
76
+ {
77
+ playerInput.onControlsChanged -= ctx => SetCurrentControlSchemeOnSwitch();
78
+ }
79
+
80
+ public bool GetHMDState()
81
+ {
82
+ if (controlScheme == ControlScheme.XR)
83
+ {
84
+ return true;
85
+ }
86
+ else { return false; }
87
+ }
88
+
89
+ }
90
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 821f47382b9fc6f479a6723fb70d43e2
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: