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.
- package/.github/workflows/publish.yml +23 -0
- package/.github/workflows.meta +8 -0
- package/Editor/CreateEventChannelsEditor.cs +22 -0
- package/Editor/CreateEventChannelsEditor.cs.meta +11 -0
- package/Editor/CreatePlayerActionsEditor.cs +23 -0
- package/Editor/CreatePlayerActionsEditor.cs.meta +11 -0
- package/Editor/CreateVRHands.cs +28 -0
- package/Editor/CreateVRHands.cs.meta +11 -0
- package/Editor/CreateVrPlayer.cs +44 -0
- package/Editor/CreateVrPlayer.cs.meta +11 -0
- package/Editor.meta +8 -0
- package/LICENSE +175 -0
- package/LICENSE.meta +7 -0
- package/README.md +70 -0
- package/README.md.meta +7 -0
- package/Runtime/InputActions/vr-player_InputActions.inputactions +2598 -0
- package/Runtime/InputActions/vr-player_InputActions.inputactions.meta +14 -0
- package/Runtime/InputActions/vrPlayer_ContinuousMove.preset +125 -0
- package/Runtime/InputActions/vrPlayer_ContinuousMove.preset.meta +8 -0
- package/Runtime/InputActions/vrPlayer_ContinuousTurn.preset +109 -0
- package/Runtime/InputActions/vrPlayer_ContinuousTurn.preset.meta +8 -0
- package/Runtime/InputActions/vrPlayer_LeftController.preset +511 -0
- package/Runtime/InputActions/vrPlayer_LeftController.preset.meta +8 -0
- package/Runtime/InputActions/vrPlayer_RightController.preset +600 -0
- package/Runtime/InputActions/vrPlayer_RightController.preset.meta +8 -0
- package/Runtime/InputActions/vrPlayer_SnapTurn.preset +121 -0
- package/Runtime/InputActions/vrPlayer_SnapTurn.preset.meta +8 -0
- package/Runtime/InputActions.meta +8 -0
- package/Runtime/Materials/GhostHands.mat +76 -0
- package/Runtime/Materials/GhostHands.mat.meta +8 -0
- package/Runtime/Materials/GloveManager.cs +18 -0
- package/Runtime/Materials/GloveManager.cs.meta +11 -0
- package/Runtime/Materials/Grey.mat +355 -0
- package/Runtime/Materials/Grey.mat.meta +8 -0
- package/Runtime/Materials/Pink.mat +355 -0
- package/Runtime/Materials/Pink.mat.meta +8 -0
- package/Runtime/Materials/SimpleColor.shadergraph +1206 -0
- package/Runtime/Materials/SimpleColor.shadergraph.meta +10 -0
- package/Runtime/Materials/White.mat +355 -0
- package/Runtime/Materials/White.mat.meta +8 -0
- package/Runtime/Materials.meta +8 -0
- package/Runtime/Physics/HandPhysicsMaterial.physicMaterial +15 -0
- package/Runtime/Physics/HandPhysicsMaterial.physicMaterial.meta +8 -0
- package/Runtime/Physics.meta +8 -0
- package/Runtime/Prefabs/CustomPass_Fade.prefab +106 -0
- package/Runtime/Prefabs/CustomPass_Fade.prefab.meta +7 -0
- package/Runtime/Prefabs/HandDetector.prefab +234 -0
- package/Runtime/Prefabs/HandDetector.prefab.meta +7 -0
- package/Runtime/Prefabs/Player.prefab +10602 -0
- package/Runtime/Prefabs/Player.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/Complete Teleport Area Set Up.prefab +503 -0
- package/Runtime/Prefabs/XR/Complete Teleport Area Set Up.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/Complete XR Origin Set Up.prefab +272 -0
- package/Runtime/Prefabs/XR/Complete XR Origin Set Up.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/Interactables/Interactable Instant Pyramid.prefab +337 -0
- package/Runtime/Prefabs/XR/Interactables/Interactable Instant Pyramid.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/Interactables/Interactable Kinematic Torus.prefab +337 -0
- package/Runtime/Prefabs/XR/Interactables/Interactable Kinematic Torus.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/Interactables/Interactable Simple Cube.prefab +276 -0
- package/Runtime/Prefabs/XR/Interactables/Interactable Simple Cube.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/Interactables/Interactable Velocity Tracked Wedge.prefab +337 -0
- package/Runtime/Prefabs/XR/Interactables/Interactable Velocity Tracked Wedge.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/Interactables/Interaction Affordance.prefab +199 -0
- package/Runtime/Prefabs/XR/Interactables/Interaction Affordance.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/Interactables Sample.prefab +260 -0
- package/Runtime/Prefabs/XR/Interactables Sample.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/Interactables.meta +8 -0
- package/Runtime/Prefabs/XR/Teleport/Blocking Teleport Reticle.prefab +278 -0
- package/Runtime/Prefabs/XR/Teleport/Blocking Teleport Reticle.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/Teleport/Directional Teleport Reticle.prefab +396 -0
- package/Runtime/Prefabs/XR/Teleport/Directional Teleport Reticle.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/Teleport/Teleport Anchor.prefab +229 -0
- package/Runtime/Prefabs/XR/Teleport/Teleport Anchor.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/Teleport/Teleport Area.prefab +231 -0
- package/Runtime/Prefabs/XR/Teleport/Teleport Area.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/Teleport.meta +8 -0
- package/Runtime/Prefabs/XR/UI Sample.prefab +533 -0
- package/Runtime/Prefabs/XR/UI Sample.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/UI_2D/MinMaxSlider.prefab +527 -0
- package/Runtime/Prefabs/XR/UI_2D/MinMaxSlider.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/UI_2D/ModalSingleButton.prefab +537 -0
- package/Runtime/Prefabs/XR/UI_2D/ModalSingleButton.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/UI_2D/TextButton.prefab +338 -0
- package/Runtime/Prefabs/XR/UI_2D/TextButton.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/UI_2D.meta +8 -0
- package/Runtime/Prefabs/XR/UI_3D/Push Button.prefab +499 -0
- package/Runtime/Prefabs/XR/UI_3D/Push Button.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/UI_3D.meta +8 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/Direct Interactor.prefab +133 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/Direct Interactor.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/Gaze Interactor.prefab +355 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/Gaze Interactor.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/Poke Interactor.prefab +254 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/Poke Interactor.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/Ray Interactor.prefab +437 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/Ray Interactor.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/Teleport Interactor.prefab +439 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/Teleport Interactor.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/XR Controller Left.prefab +804 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/XR Controller Left.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/XR Controller Right.prefab +801 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/XR Controller Right.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/XR Origin Preconfigured.prefab +2371 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces/XR Origin Preconfigured.prefab.meta +7 -0
- package/Runtime/Prefabs/XR/XR Origin Pieces.meta +8 -0
- package/Runtime/Prefabs/XR.meta +8 -0
- package/Runtime/Prefabs/XROrigin.prefab +5073 -0
- package/Runtime/Prefabs/XROrigin.prefab.meta +7 -0
- package/Runtime/Prefabs.meta +8 -0
- package/Runtime/Shaders/Hands_ShaderGraph.shadergraph +21544 -0
- package/Runtime/Shaders/Hands_ShaderGraph.shadergraph.meta +10 -0
- package/Runtime/Shaders/M_HandGhost.mat +421 -0
- package/Runtime/Shaders/M_HandGhost.mat.meta +8 -0
- package/Runtime/Shaders/SHG_GhostHands.shadergraph +1276 -0
- package/Runtime/Shaders/SHG_GhostHands.shadergraph.meta +10 -0
- package/Runtime/Shaders/SH_GhostHands.shader +97 -0
- package/Runtime/Shaders/SH_GhostHands.shader.meta +9 -0
- package/Runtime/Shaders/SH_GhostShader_HDRP.shader +85 -0
- package/Runtime/Shaders/SH_GhostShader_HDRP.shader.meta +10 -0
- package/Runtime/Shaders/Subgraphs/CameraMultiplier.shadersubgraph +881 -0
- package/Runtime/Shaders/Subgraphs/CameraMultiplier.shadersubgraph.meta +10 -0
- package/Runtime/Shaders/Subgraphs/DetailUVs.shadersubgraph +483 -0
- package/Runtime/Shaders/Subgraphs/DetailUVs.shadersubgraph.meta +10 -0
- package/Runtime/Shaders/Subgraphs.meta +8 -0
- package/Runtime/Shaders.meta +8 -0
- package/Runtime/cursor/Forward.png +0 -0
- package/Runtime/cursor/Forward.png.meta +108 -0
- package/Runtime/cursor/cursor_cursor_0.svg +21 -0
- package/Runtime/cursor/cursor_cursor_0.svg.meta +55 -0
- package/Runtime/cursor/cursor_cursor_1.svg +18 -0
- package/Runtime/cursor/cursor_cursor_1.svg.meta +55 -0
- package/Runtime/cursor/teleport.svg +16 -0
- package/Runtime/cursor/teleport.svg.meta +55 -0
- package/Runtime/cursor.meta +8 -0
- package/Runtime/scripts/ActionManagement/ActionContainer/ActionContainerSO.asset +16 -0
- package/Runtime/scripts/ActionManagement/ActionContainer/ActionContainerSO.asset.meta +8 -0
- package/Runtime/scripts/ActionManagement/ActionContainer.meta +8 -0
- package/Runtime/scripts/ActionManagement/ActionContainerSO.cs +50 -0
- package/Runtime/scripts/ActionManagement/ActionContainerSO.cs.meta +11 -0
- package/Runtime/scripts/ActionManagement/ActionRebindChannels/ActionRebindedInRebindScript.asset +16 -0
- package/Runtime/scripts/ActionManagement/ActionRebindChannels/ActionRebindedInRebindScript.asset.meta +8 -0
- package/Runtime/scripts/ActionManagement/ActionRebindChannels/ActionRebindedInUI.asset +16 -0
- package/Runtime/scripts/ActionManagement/ActionRebindChannels/ActionRebindedInUI.asset.meta +8 -0
- package/Runtime/scripts/ActionManagement/ActionRebindChannels.meta +8 -0
- package/Runtime/scripts/ActionManagement/ActionRebinder.cs +131 -0
- package/Runtime/scripts/ActionManagement/ActionRebinder.cs.meta +11 -0
- package/Runtime/scripts/ActionManagement/ActionSO.cs +55 -0
- package/Runtime/scripts/ActionManagement/ActionSO.cs.meta +11 -0
- package/Runtime/scripts/ActionManagement/InputActionManager.cs +35 -0
- package/Runtime/scripts/ActionManagement/InputActionManager.cs.meta +11 -0
- package/Runtime/scripts/ActionManagement/PlayerActionManager.cs +234 -0
- package/Runtime/scripts/ActionManagement/PlayerActionManager.cs.meta +11 -0
- package/Runtime/scripts/ActionManagement/PlayerInputEventManager.cs +101 -0
- package/Runtime/scripts/ActionManagement/PlayerInputEventManager.cs.meta +11 -0
- package/Runtime/scripts/ActionManagement/PlayerInputInterface.cs +147 -0
- package/Runtime/scripts/ActionManagement/PlayerInputInterface.cs.meta +11 -0
- package/Runtime/scripts/ActionManagement/UIHandlingSO/UIHandlerEventChannelSO.asset +16 -0
- package/Runtime/scripts/ActionManagement/UIHandlingSO/UIHandlerEventChannelSO.asset.meta +8 -0
- package/Runtime/scripts/ActionManagement/UIHandlingSO/loginFieldIsOpened.asset +16 -0
- package/Runtime/scripts/ActionManagement/UIHandlingSO/loginFieldIsOpened.asset.meta +8 -0
- package/Runtime/scripts/ActionManagement/UIHandlingSO.meta +8 -0
- package/Runtime/scripts/ActionManagement/XR Debugger.cs +41 -0
- package/Runtime/scripts/ActionManagement/XR Debugger.cs.meta +11 -0
- package/Runtime/scripts/ActionManagement.meta +8 -0
- package/Runtime/scripts/Basics/MainMenuController.cs +54 -0
- package/Runtime/scripts/Basics/MainMenuController.cs.meta +11 -0
- package/Runtime/scripts/Basics/PrimaryItemController.cs +80 -0
- package/Runtime/scripts/Basics/PrimaryItemController.cs.meta +11 -0
- package/Runtime/scripts/Basics.meta +8 -0
- package/Runtime/scripts/Fade/FadeChannel.asset +16 -0
- package/Runtime/scripts/Fade/FadeChannel.asset.meta +8 -0
- package/Runtime/scripts/Fade/FadeMask.cs +115 -0
- package/Runtime/scripts/Fade/FadeMask.cs.meta +11 -0
- package/Runtime/scripts/Fade/HDRP FadeGlobalVolume Profile.asset +44 -0
- package/Runtime/scripts/Fade/HDRP FadeGlobalVolume Profile.asset.meta +8 -0
- package/Runtime/scripts/Fade/URP FadeGlobalVolume Profile.asset +44 -0
- package/Runtime/scripts/Fade/URP FadeGlobalVolume Profile.asset.meta +8 -0
- package/Runtime/scripts/Fade.meta +8 -0
- package/Runtime/scripts/FireEventOnTrigger.cs +53 -0
- package/Runtime/scripts/FireEventOnTrigger.cs.meta +11 -0
- package/Runtime/scripts/Gaze/CursorStateController.cs +167 -0
- package/Runtime/scripts/Gaze/CursorStateController.cs.meta +11 -0
- package/Runtime/scripts/Gaze/FPSCameraMovement.cs +224 -0
- package/Runtime/scripts/Gaze/FPSCameraMovement.cs.meta +11 -0
- package/Runtime/scripts/Gaze/NoPeeking.cs +60 -0
- package/Runtime/scripts/Gaze/NoPeeking.cs.meta +11 -0
- package/Runtime/scripts/Gaze.meta +8 -0
- package/Runtime/scripts/HandInteraction/BlendableHand.cs +30 -0
- package/Runtime/scripts/HandInteraction/BlendableHand.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/Core/Hand.cs +50 -0
- package/Runtime/scripts/HandInteraction/Core/Hand.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/Core/HandController.cs +29 -0
- package/Runtime/scripts/HandInteraction/Core/HandController.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/Core/HandPoseManager.cs +105 -0
- package/Runtime/scripts/HandInteraction/Core/HandPoseManager.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/Core/HandsPhysics.cs +197 -0
- package/Runtime/scripts/HandInteraction/Core/HandsPhysics.cs.meta +2 -0
- package/Runtime/scripts/HandInteraction/Core/SwapHands.cs +76 -0
- package/Runtime/scripts/HandInteraction/Core/SwapHands.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/Core.meta +8 -0
- package/Runtime/scripts/HandInteraction/DetectWhichHandCollided.cs +18 -0
- package/Runtime/scripts/HandInteraction/DetectWhichHandCollided.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/Editor/HandPreviewEditor.cs +71 -0
- package/Runtime/scripts/HandInteraction/Editor/HandPreviewEditor.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/Editor/PoseContainerEditor.cs +26 -0
- package/Runtime/scripts/HandInteraction/Editor/PoseContainerEditor.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/Editor/PoseWindow.cs +258 -0
- package/Runtime/scripts/HandInteraction/Editor/PoseWindow.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/Editor.meta +8 -0
- package/Runtime/scripts/HandInteraction/GetPrimaryInHandItemWithVRController.cs +212 -0
- package/Runtime/scripts/HandInteraction/GetPrimaryInHandItemWithVRController.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/GrabHandPose.cs +101 -0
- package/Runtime/scripts/HandInteraction/GrabHandPose.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandData/Left XR Direct Interactor Event Channel SO.asset +16 -0
- package/Runtime/scripts/HandInteraction/HandData/Left XR Direct Interactor Event Channel SO.asset.meta +8 -0
- package/Runtime/scripts/HandInteraction/HandData/Right XR Direct Interactor Event Channel SO.asset +16 -0
- package/Runtime/scripts/HandInteraction/HandData/Right XR Direct Interactor Event Channel SO.asset.meta +8 -0
- package/Runtime/scripts/HandInteraction/HandData/XRBaseInteractorEventChannelSO.cs +18 -0
- package/Runtime/scripts/HandInteraction/HandData/XRBaseInteractorEventChannelSO.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandData/XRBaseInteractorListener.cs +43 -0
- package/Runtime/scripts/HandInteraction/HandData/XRBaseInteractorListener.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandData/XRBaseInteractorSender.cs +39 -0
- package/Runtime/scripts/HandInteraction/HandData/XRBaseInteractorSender.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandData.cs +14 -0
- package/Runtime/scripts/HandInteraction/HandData.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandData.meta +8 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Hands/BaseHand.cs +127 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Hands/BaseHand.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Hands/GameplayHand.cs +69 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Hands/GameplayHand.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Hands/HandsDisplayer.cs +38 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Hands/HandsDisplayer.cs.meta +2 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Hands/PreviewHand.cs +61 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Hands/PreviewHand.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Hands/Support/HandInfo.cs +23 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Hands/Support/HandInfo.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Hands/Support/HandType.cs +6 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Hands/Support/HandType.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Hands/Support.meta +8 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Hands.meta +8 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Pose/Pose.cs +27 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Pose/Pose.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Pose/PoseContainer.cs +76 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Pose/PoseContainer.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Pose/PoseHelper/HandManager.cs +93 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Pose/PoseHelper/HandManager.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Pose/PoseHelper/SelectionHandler.cs +110 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Pose/PoseHelper/SelectionHandler.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Pose/PoseHelper.meta +8 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Pose.meta +8 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Utility/Extensions.cs +11 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Utility/Extensions.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandPoser/Utility.meta +8 -0
- package/Runtime/scripts/HandInteraction/HandPoser.meta +8 -0
- package/Runtime/scripts/HandInteraction/HandVibration.cs +35 -0
- package/Runtime/scripts/HandInteraction/HandVibration.cs.meta +2 -0
- package/Runtime/scripts/HandInteraction/HandsAppearanceManager.cs +212 -0
- package/Runtime/scripts/HandInteraction/HandsAppearanceManager.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/HandsStateController.cs +32 -0
- package/Runtime/scripts/HandInteraction/HandsStateController.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/KeyboardGrab.cs +49 -0
- package/Runtime/scripts/HandInteraction/KeyboardGrab.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/Locomotion/BindTeleportationAreaToInteractionManager.cs +31 -0
- package/Runtime/scripts/HandInteraction/Locomotion/BindTeleportationAreaToInteractionManager.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/Locomotion/TeleportationManager.cs +85 -0
- package/Runtime/scripts/HandInteraction/Locomotion/TeleportationManager.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/Locomotion.meta +8 -0
- package/Runtime/scripts/HandInteraction/PerformAction.cs +60 -0
- package/Runtime/scripts/HandInteraction/PerformAction.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/PickableObject.cs +54 -0
- package/Runtime/scripts/HandInteraction/PickableObject.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/PointOnCollisionTriggerWhenGrab.cs +169 -0
- package/Runtime/scripts/HandInteraction/PointOnCollisionTriggerWhenGrab.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/PointingPoseManager.cs +50 -0
- package/Runtime/scripts/HandInteraction/PointingPoseManager.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/RayInteractorManager.cs +41 -0
- package/Runtime/scripts/HandInteraction/RayInteractorManager.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/SetPoseOnTrigger.cs +59 -0
- package/Runtime/scripts/HandInteraction/SetPoseOnTrigger.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/TakeObject.cs +342 -0
- package/Runtime/scripts/HandInteraction/TakeObject.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction/XRHandsInteractionManager.cs +78 -0
- package/Runtime/scripts/HandInteraction/XRHandsInteractionManager.cs.meta +11 -0
- package/Runtime/scripts/HandInteraction.meta +8 -0
- package/Runtime/scripts/HandVisualizer.cs +567 -0
- package/Runtime/scripts/HandVisualizer.cs.meta +11 -0
- package/Runtime/scripts/Hmd/BroadcastControlsStatus.cs +90 -0
- package/Runtime/scripts/Hmd/BroadcastControlsStatus.cs.meta +11 -0
- package/Runtime/scripts/Hmd/DetectUserPresence.cs +39 -0
- package/Runtime/scripts/Hmd/DetectUserPresence.cs.meta +11 -0
- package/Runtime/scripts/Hmd.meta +8 -0
- package/Runtime/scripts/LocomotionManager.cs +110 -0
- package/Runtime/scripts/LocomotionManager.cs.meta +11 -0
- package/Runtime/scripts/MainCameraTarget.cs +6 -0
- package/Runtime/scripts/MainCameraTarget.cs.meta +11 -0
- package/Runtime/scripts/Movement/PlayerMovement.cs +98 -0
- package/Runtime/scripts/Movement/PlayerMovement.cs.meta +11 -0
- package/Runtime/scripts/Movement.meta +8 -0
- package/Runtime/scripts/OrientObjectAlongTowardPoint.cs +81 -0
- package/Runtime/scripts/OrientObjectAlongTowardPoint.cs.meta +11 -0
- package/Runtime/scripts/SnapObject/SnapObject.cs +104 -0
- package/Runtime/scripts/SnapObject/SnapObject.cs.meta +11 -0
- package/Runtime/scripts/SnapObject/SnapZone.cs +14 -0
- package/Runtime/scripts/SnapObject/SnapZone.cs.meta +11 -0
- package/Runtime/scripts/SnapObject.meta +8 -0
- package/Runtime/scripts/Teleportation/SendTeleportTarget.cs +85 -0
- package/Runtime/scripts/Teleportation/SendTeleportTarget.cs.meta +11 -0
- package/Runtime/scripts/Teleportation/TeleportManager.cs +54 -0
- package/Runtime/scripts/Teleportation/TeleportManager.cs.meta +11 -0
- package/Runtime/scripts/Teleportation/TeleportOnEvent.cs +71 -0
- package/Runtime/scripts/Teleportation/TeleportOnEvent.cs.meta +11 -0
- package/Runtime/scripts/Teleportation.meta +8 -0
- package/Runtime/scripts/Tooltips/InputTooltipSO.cs +36 -0
- package/Runtime/scripts/Tooltips/InputTooltipSO.cs.meta +11 -0
- package/Runtime/scripts/Tooltips.meta +8 -0
- package/Runtime/scripts/jeanf.vrplayer.asmdef +29 -0
- package/Runtime/scripts/jeanf.vrplayer.asmdef.meta +7 -0
- package/Runtime/scripts.meta +8 -0
- package/Runtime/xrToolkit/Scripts/ActionBasedControllerManager.cs +568 -0
- package/Runtime/xrToolkit/Scripts/ActionBasedControllerManager.cs.meta +11 -0
- package/Runtime/xrToolkit/Scripts/BubbleGun.cs +72 -0
- package/Runtime/xrToolkit/Scripts/BubbleGun.cs.meta +11 -0
- package/Runtime/xrToolkit/Scripts/ComplexCube.cs +51 -0
- package/Runtime/xrToolkit/Scripts/ComplexCube.cs.meta +11 -0
- package/Runtime/xrToolkit/Scripts/ControllerManager.cs +377 -0
- package/Runtime/xrToolkit/Scripts/ControllerManager.cs.meta +11 -0
- package/Runtime/xrToolkit/Scripts/LocomotionConfigurationMenu.cs +730 -0
- package/Runtime/xrToolkit/Scripts/LocomotionConfigurationMenu.cs.meta +11 -0
- package/Runtime/xrToolkit/Scripts/LocomotionSchemeManager.cs +524 -0
- package/Runtime/xrToolkit/Scripts/LocomotionSchemeManager.cs.meta +11 -0
- package/Runtime/xrToolkit/Scripts/UpdateControlText.cs +41 -0
- package/Runtime/xrToolkit/Scripts/UpdateControlText.cs.meta +11 -0
- package/Runtime/xrToolkit/Scripts/xr.toolkit.asmdef +17 -0
- package/Runtime/xrToolkit/Scripts/xr.toolkit.asmdef.meta +7 -0
- package/Runtime/xrToolkit/Scripts.meta +8 -0
- package/Runtime/xrToolkit/Shaders/ReticleShader.shader +50 -0
- package/Runtime/xrToolkit/Shaders/ReticleShader.shader.meta +9 -0
- package/Runtime/xrToolkit/Shaders/SimpleTeleportHighlight.shader +57 -0
- package/Runtime/xrToolkit/Shaders/SimpleTeleportHighlight.shader.meta +9 -0
- package/Runtime/xrToolkit/Shaders/Unlit-Line-Opaque.shader +79 -0
- package/Runtime/xrToolkit/Shaders/Unlit-Line-Opaque.shader.meta +9 -0
- package/Runtime/xrToolkit/Shaders/pulsingEffectShader.shader +64 -0
- package/Runtime/xrToolkit/Shaders/pulsingEffectShader.shader.meta +9 -0
- package/Runtime/xrToolkit/Shaders.meta +8 -0
- package/Runtime/xrToolkit.meta +8 -0
- package/Runtime.meta +8 -0
- package/Samples/HandPoses/DefaultPose.asset +70 -0
- package/Samples/HandPoses/DefaultPose.asset.meta +8 -0
- package/Samples/HandPoses/OldDefaultPose.asset +60 -0
- package/Samples/HandPoses/OldDefaultPose.asset.meta +8 -0
- package/Samples/HandPoses.meta +8 -0
- package/Samples/Hands/Animations/LeftHand.controller +267 -0
- package/Samples/Hands/Animations/LeftHand.controller.meta +8 -0
- package/Samples/Hands/Animations.meta +8 -0
- package/Samples/Hands/Gloves1DiffusionProfile.asset +25 -0
- package/Samples/Hands/Gloves1DiffusionProfile.asset.meta +8 -0
- package/Samples/Hands/Mat/Hands_Nails.mat +482 -0
- package/Samples/Hands/Mat/Hands_Nails.mat.meta +8 -0
- package/Samples/Hands/Mat/Hands_Skin.mat +483 -0
- package/Samples/Hands/Mat/Hands_Skin.mat.meta +8 -0
- package/Samples/Hands/Mat/SkinDiffusionProfile.asset +25 -0
- package/Samples/Hands/Mat/SkinDiffusionProfile.asset.meta +8 -0
- package/Samples/Hands/Mat.meta +8 -0
- package/Samples/Hands/Models/CC_LefttHand.fbx +0 -0
- package/Samples/Hands/Models/CC_LefttHand.fbx.meta +106 -0
- package/Samples/Hands/Models/CC_RightHand.fbx +0 -0
- package/Samples/Hands/Models/CC_RightHand.fbx.meta +106 -0
- package/Samples/Hands/Models.meta +8 -0
- package/Samples/Hands/Prefabs/CC_LefttHand.prefab +1058 -0
- package/Samples/Hands/Prefabs/CC_LefttHand.prefab.meta +7 -0
- package/Samples/Hands/Prefabs/CC_LefttHand_Controller.prefab +294 -0
- package/Samples/Hands/Prefabs/CC_LefttHand_Controller.prefab.meta +7 -0
- package/Samples/Hands/Prefabs/CC_LefttHand_Controller_Preview.prefab +132 -0
- package/Samples/Hands/Prefabs/CC_LefttHand_Controller_Preview.prefab.meta +7 -0
- package/Samples/Hands/Prefabs/CC_RightHand.prefab +1010 -0
- package/Samples/Hands/Prefabs/CC_RightHand.prefab.meta +7 -0
- package/Samples/Hands/Prefabs/CC_RightHand_Controller.prefab +317 -0
- package/Samples/Hands/Prefabs/CC_RightHand_Controller.prefab.meta +7 -0
- package/Samples/Hands/Prefabs/CC_RightHand_Controller_Preview.prefab +136 -0
- package/Samples/Hands/Prefabs/CC_RightHand_Controller_Preview.prefab.meta +7 -0
- package/Samples/Hands/Prefabs/Joint.prefab +490 -0
- package/Samples/Hands/Prefabs/Joint.prefab.meta +7 -0
- package/Samples/Hands/Prefabs/Resources/PoseHelper.prefab +64 -0
- package/Samples/Hands/Prefabs/Resources/PoseHelper.prefab.meta +7 -0
- package/Samples/Hands/Prefabs/Resources.meta +8 -0
- package/Samples/Hands/Prefabs/VelocityPrefab.prefab +131 -0
- package/Samples/Hands/Prefabs/VelocityPrefab.prefab.meta +7 -0
- package/Samples/Hands/Prefabs.meta +8 -0
- package/Samples/Hands/SkinDiffusionProfile.asset +25 -0
- package/Samples/Hands/SkinDiffusionProfile.asset.meta +8 -0
- package/Samples/Hands/Textures/Eyes/Std_eyes_Pbr_hght.png +0 -0
- package/Samples/Hands/Textures/Eyes/Std_eyes_Pbr_hght.png.meta +108 -0
- package/Samples/Hands/Textures/Eyes.meta +8 -0
- package/Samples/Hands/Textures/G3Plus/Arm_Sss_Mask.png +0 -0
- package/Samples/Hands/Textures/G3Plus/Arm_Sss_Mask.png.meta +104 -0
- package/Samples/Hands/Textures/G3Plus/Arm_Thickness.png +0 -0
- package/Samples/Hands/Textures/G3Plus/Arm_Thickness.png.meta +104 -0
- package/Samples/Hands/Textures/G3Plus/Body_Sss_Mask.png +0 -0
- package/Samples/Hands/Textures/G3Plus/Body_Sss_Mask.png.meta +104 -0
- package/Samples/Hands/Textures/G3Plus/Body_Thickness.png +0 -0
- package/Samples/Hands/Textures/G3Plus/Body_Thickness.png.meta +104 -0
- package/Samples/Hands/Textures/G3Plus/Head_Sss_Mask.png +0 -0
- package/Samples/Hands/Textures/G3Plus/Head_Sss_Mask.png.meta +104 -0
- package/Samples/Hands/Textures/G3Plus/Head_Thickness.png +0 -0
- package/Samples/Hands/Textures/G3Plus/Head_Thickness.png.meta +104 -0
- package/Samples/Hands/Textures/G3Plus/Leg_Sss_Mask.png +0 -0
- package/Samples/Hands/Textures/G3Plus/Leg_Sss_Mask.png.meta +104 -0
- package/Samples/Hands/Textures/G3Plus/Leg_Thickness.png +0 -0
- package/Samples/Hands/Textures/G3Plus/Leg_Thickness.png.meta +104 -0
- package/Samples/Hands/Textures/G3Plus.meta +8 -0
- package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Hands_ALB.png +0 -0
- package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Hands_ALB.png.meta +123 -0
- package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Hands_MM.png +0 -0
- package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Hands_MM.png.meta +123 -0
- package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Hands_NM.png +0 -0
- package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Hands_NM.png.meta +123 -0
- package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Nail_ALB.png +0 -0
- package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Nail_ALB.png.meta +123 -0
- package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Nails_MM.png +0 -0
- package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Nails_MM.png.meta +123 -0
- package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Nails_NM.png +0 -0
- package/Samples/Hands/Textures/Gloves/Uvsi_Mat_Glv1_Nails_NM.png.meta +123 -0
- package/Samples/Hands/Textures/Gloves.meta +8 -0
- package/Samples/Hands/Textures/Man/Std_Nails_Diffuse.jpg +0 -0
- package/Samples/Hands/Textures/Man/Std_Nails_Diffuse.jpg.meta +123 -0
- package/Samples/Hands/Textures/Man/Std_Nails_HDRP.png +0 -0
- package/Samples/Hands/Textures/Man/Std_Nails_HDRP.png.meta +123 -0
- package/Samples/Hands/Textures/Man/Std_Nails_Normal.png +0 -0
- package/Samples/Hands/Textures/Man/Std_Nails_Normal.png.meta +123 -0
- package/Samples/Hands/Textures/Man/Std_Skin_Arm_Diffuse.jpg +0 -0
- package/Samples/Hands/Textures/Man/Std_Skin_Arm_Diffuse.jpg.meta +123 -0
- package/Samples/Hands/Textures/Man/Std_Skin_Arm_HDRP.png +0 -0
- package/Samples/Hands/Textures/Man/Std_Skin_Arm_HDRP.png.meta +123 -0
- package/Samples/Hands/Textures/Man/Std_Skin_Arm_Normal.png +0 -0
- package/Samples/Hands/Textures/Man/Std_Skin_Arm_Normal.png.meta +123 -0
- package/Samples/Hands/Textures/Man.meta +8 -0
- package/Samples/Hands/Textures/Woman/Std_Nails_Diffuse.jpg +0 -0
- package/Samples/Hands/Textures/Woman/Std_Nails_Diffuse.jpg.meta +123 -0
- package/Samples/Hands/Textures/Woman/Std_Nails_HDRP.png +0 -0
- package/Samples/Hands/Textures/Woman/Std_Nails_HDRP.png.meta +123 -0
- package/Samples/Hands/Textures/Woman/Std_Nails_Normal.jpg +0 -0
- package/Samples/Hands/Textures/Woman/Std_Nails_Normal.jpg.meta +123 -0
- package/Samples/Hands/Textures/Woman/Std_Skin_Arm_Diffuse.jpg +0 -0
- package/Samples/Hands/Textures/Woman/Std_Skin_Arm_Diffuse.jpg.meta +123 -0
- package/Samples/Hands/Textures/Woman/Std_Skin_Arm_HDRP.png +0 -0
- package/Samples/Hands/Textures/Woman/Std_Skin_Arm_HDRP.png.meta +123 -0
- package/Samples/Hands/Textures/Woman/Std_Skin_Arm_Normal.jpg +0 -0
- package/Samples/Hands/Textures/Woman/Std_Skin_Arm_Normal.jpg.meta +123 -0
- package/Samples/Hands/Textures/Woman.meta +8 -0
- package/Samples/Hands/Textures/skin_detail_map.tif +0 -0
- package/Samples/Hands/Textures/skin_detail_map.tif.meta +132 -0
- package/Samples/Hands/Textures/skin_detail_map_normal.tif +0 -0
- package/Samples/Hands/Textures/skin_detail_map_normal.tif.meta +159 -0
- package/Samples/Hands/Textures.meta +8 -0
- package/Samples/Hands.meta +8 -0
- package/Samples/xrToolkit/InputSettings/.sample.json +4 -0
- package/Samples/xrToolkit/InputSettings/XR Device Simulator/.sample.json +4 -0
- package/Samples/xrToolkit/InputSettings/XR Device Simulator/XR Device Simulator Controls.inputactions +877 -0
- package/Samples/xrToolkit/InputSettings/XR Device Simulator/XR Device Simulator Controls.inputactions.meta +14 -0
- package/Samples/xrToolkit/InputSettings/XR Device Simulator/XR Device Simulator.prefab +142 -0
- package/Samples/xrToolkit/InputSettings/XR Device Simulator/XR Device Simulator.prefab.meta +7 -0
- package/Samples/xrToolkit/InputSettings/XR Device Simulator.meta +8 -0
- package/Samples/xrToolkit/InputSettings.meta +8 -0
- package/Samples/xrToolkit/InputSystem.inputsettings.asset +26 -0
- package/Samples/xrToolkit/InputSystem.inputsettings.asset.meta +8 -0
- package/Samples/xrToolkit/Llama/Llama.controller +167 -0
- package/Samples/xrToolkit/Llama/Llama.controller.meta +8 -0
- package/Samples/xrToolkit/Llama/Llama.fbx +0 -0
- package/Samples/xrToolkit/Llama/Llama.fbx.meta +97 -0
- package/Samples/xrToolkit/Llama/LlamaMat.mat +342 -0
- package/Samples/xrToolkit/Llama/LlamaMat.mat.meta +8 -0
- package/Samples/xrToolkit/Llama/Llama_A_Albedo.tif +0 -0
- package/Samples/xrToolkit/Llama/Llama_A_Albedo.tif.meta +92 -0
- package/Samples/xrToolkit/Llama/Llama_B_Albedo.tif +0 -0
- package/Samples/xrToolkit/Llama/Llama_B_Albedo.tif.meta +92 -0
- package/Samples/xrToolkit/Llama/Llama_C_Albedo.tif +0 -0
- package/Samples/xrToolkit/Llama/Llama_C_Albedo.tif.meta +92 -0
- package/Samples/xrToolkit/Llama/Llama_Idle.fbx +0 -0
- package/Samples/xrToolkit/Llama/Llama_Idle.fbx.meta +239 -0
- package/Samples/xrToolkit/Llama/Llama_MetallicSmoothness.tif +0 -0
- package/Samples/xrToolkit/Llama/Llama_MetallicSmoothness.tif.meta +92 -0
- package/Samples/xrToolkit/Llama/Llama_Occlsion.tif +0 -0
- package/Samples/xrToolkit/Llama/Llama_Occlsion.tif.meta +92 -0
- package/Samples/xrToolkit/Llama/llama_Normal.tif +0 -0
- package/Samples/xrToolkit/Llama/llama_Normal.tif.meta +92 -0
- package/Samples/xrToolkit/Llama.meta +8 -0
- package/Samples/xrToolkit/Materials/BubbleMat.mat +343 -0
- package/Samples/xrToolkit/Materials/BubbleMat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/ConstructionLight_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/ConstructionLight_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/ControllerMaterial.mat +342 -0
- package/Samples/xrToolkit/Materials/ControllerMaterial.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/DryWallPainted_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/DryWallPainted_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/DryWall_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/DryWall_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/FloorMat.mat +342 -0
- package/Samples/xrToolkit/Materials/FloorMat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/FloorMaterial.mat +343 -0
- package/Samples/xrToolkit/Materials/FloorMaterial.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/GrabBlockInstantMat.mat +351 -0
- package/Samples/xrToolkit/Materials/GrabBlockInstantMat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/GrabBlockMat.mat +351 -0
- package/Samples/xrToolkit/Materials/GrabBlockMat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/GrabBlockVelocityMat.mat +351 -0
- package/Samples/xrToolkit/Materials/GrabBlockVelocityMat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Ground_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/Ground_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Hammer_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/Hammer_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/HandMaterial.mat +342 -0
- package/Samples/xrToolkit/Materials/HandMaterial.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/HardHat_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/HardHat_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Jigsaw_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/Jigsaw_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/LightBulb_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/LightBulb_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/LineVisual.mat +322 -0
- package/Samples/xrToolkit/Materials/LineVisual.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Liquid_Mat.mat +352 -0
- package/Samples/xrToolkit/Materials/Liquid_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Metal_Blue_Simple_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/Metal_Blue_Simple_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Metal_Simple_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/Metal_Simple_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/OBS_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/OBS_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/PaintBrush_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/PaintBrush_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/PaintCan_mat.mat +342 -0
- package/Samples/xrToolkit/Materials/PaintCan_mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/PaintLabel_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/PaintLabel_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Plastic_Black_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/Plastic_Black_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Plastic_Gray_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/Plastic_Gray_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Plastic_Ridges_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/Plastic_Ridges_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Plastic_Rough_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/Plastic_Rough_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Plastic_Transparent.mat +343 -0
- package/Samples/xrToolkit/Materials/Plastic_Transparent.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Plastic_White_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/Plastic_White_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Plastic_Yellow_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/Plastic_Yellow_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/PulseEngines.mat +316 -0
- package/Samples/xrToolkit/Materials/PulseEngines.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/ReticleMaterial.mat +344 -0
- package/Samples/xrToolkit/Materials/ReticleMaterial.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/SimpleTeleportHighlight.mat +316 -0
- package/Samples/xrToolkit/Materials/SimpleTeleportHighlight.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/SocketMat.mat +343 -0
- package/Samples/xrToolkit/Materials/SocketMat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Strap_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/Strap_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/Stud_Mat.mat +342 -0
- package/Samples/xrToolkit/Materials/Stud_Mat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/TableMat.mat +342 -0
- package/Samples/xrToolkit/Materials/TableMat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/TeleportAnchor.mat +322 -0
- package/Samples/xrToolkit/Materials/TeleportAnchor.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/TeleportHoverMat.mat +342 -0
- package/Samples/xrToolkit/Materials/TeleportHoverMat.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/TeleportPlatform.mat +342 -0
- package/Samples/xrToolkit/Materials/TeleportPlatform.mat.meta +8 -0
- package/Samples/xrToolkit/Materials/WhiteSmooth.mat +351 -0
- package/Samples/xrToolkit/Materials/WhiteSmooth.mat.meta +8 -0
- package/Samples/xrToolkit/Materials.meta +8 -0
- package/Samples/xrToolkit/Models/.mayaSwatches/arrowhead.mlt.swatches +0 -0
- package/Samples/xrToolkit/Models/Brush_Low.fbx +0 -0
- package/Samples/xrToolkit/Models/Brush_Low.fbx.meta +115 -0
- package/Samples/xrToolkit/Models/ConstructionLight_Low.fbx +0 -0
- package/Samples/xrToolkit/Models/ConstructionLight_Low.fbx.meta +154 -0
- package/Samples/xrToolkit/Models/GroundPlane.fbx +0 -0
- package/Samples/xrToolkit/Models/GroundPlane.fbx.meta +97 -0
- package/Samples/xrToolkit/Models/Hammer_Low.fbx +0 -0
- package/Samples/xrToolkit/Models/Hammer_Low.fbx.meta +115 -0
- package/Samples/xrToolkit/Models/Horizon.FBX +0 -0
- package/Samples/xrToolkit/Models/Horizon.FBX.meta +97 -0
- package/Samples/xrToolkit/Models/Jigsaw_Low.fbx +0 -0
- package/Samples/xrToolkit/Models/Jigsaw_Low.fbx.meta +115 -0
- package/Samples/xrToolkit/Models/MagneticLevel_Low.fbx +0 -0
- package/Samples/xrToolkit/Models/MagneticLevel_Low.fbx.meta +124 -0
- package/Samples/xrToolkit/Models/PaintBucket_Low.fbx +0 -0
- package/Samples/xrToolkit/Models/PaintBucket_Low.fbx.meta +160 -0
- package/Samples/xrToolkit/Models/SafetyGoggles_Low.fbx +0 -0
- package/Samples/xrToolkit/Models/SafetyGoggles_Low.fbx.meta +124 -0
- package/Samples/xrToolkit/Models/SafetyHat_Low.fbx +0 -0
- package/Samples/xrToolkit/Models/SafetyHat_Low.fbx.meta +115 -0
- package/Samples/xrToolkit/Models/Small_Plane.fbx +0 -0
- package/Samples/xrToolkit/Models/Small_Plane.fbx.meta +115 -0
- package/Samples/xrToolkit/Models/StoneFlat.fbx +0 -0
- package/Samples/xrToolkit/Models/StoneFlat.fbx.meta +97 -0
- package/Samples/xrToolkit/Models/StoneRound.fbx +0 -0
- package/Samples/xrToolkit/Models/StoneRound.fbx.meta +97 -0
- package/Samples/xrToolkit/Models/Stud.fbx +0 -0
- package/Samples/xrToolkit/Models/Stud.fbx.meta +136 -0
- package/Samples/xrToolkit/Models/TreeBox.fbx +0 -0
- package/Samples/xrToolkit/Models/TreeBox.fbx.meta +97 -0
- package/Samples/xrToolkit/Models/TreeRound.FBX +0 -0
- package/Samples/xrToolkit/Models/TreeRound.FBX.meta +97 -0
- package/Samples/xrToolkit/Models/Workbench.fbx +0 -0
- package/Samples/xrToolkit/Models/Workbench.fbx.meta +196 -0
- package/Samples/xrToolkit/Models/Workbench_Low.fbx +0 -0
- package/Samples/xrToolkit/Models/Workbench_Low.fbx.meta +196 -0
- package/Samples/xrToolkit/Models/Workshop_Set.fbx +0 -0
- package/Samples/xrToolkit/Models/Workshop_Set.fbx.meta +196 -0
- package/Samples/xrToolkit/Models/controller.fbx +0 -0
- package/Samples/xrToolkit/Models/controller.fbx.meta +97 -0
- package/Samples/xrToolkit/Models/directionArrow.fbx +0 -0
- package/Samples/xrToolkit/Models/directionArrow.fbx.meta +97 -0
- package/Samples/xrToolkit/Models/fileAnchorWall.fbx +0 -0
- package/Samples/xrToolkit/Models/fileAnchorWall.fbx.meta +97 -0
- package/Samples/xrToolkit/Models/floatingAnchor.fbx +0 -0
- package/Samples/xrToolkit/Models/floatingAnchor.fbx.meta +97 -0
- package/Samples/xrToolkit/Models/lowPolyIsland.fbx +0 -0
- package/Samples/xrToolkit/Models/lowPolyIsland.fbx.meta +2575 -0
- package/Samples/xrToolkit/Models/reticle.fbx +0 -0
- package/Samples/xrToolkit/Models/reticle.fbx.meta +120 -0
- package/Samples/xrToolkit/Models/spaceShip.fbx +0 -0
- package/Samples/xrToolkit/Models/spaceShip.fbx.meta +1594 -0
- package/Samples/xrToolkit/Models/teleportHightlight.fbx +0 -0
- package/Samples/xrToolkit/Models/teleportHightlight.fbx.meta +97 -0
- package/Samples/xrToolkit/Models/teleportPlatform.fbx +0 -0
- package/Samples/xrToolkit/Models/teleportPlatform.fbx.meta +97 -0
- package/Samples/xrToolkit/Models.meta +8 -0
- package/Samples/xrToolkit/Plugins/Android/AndroidManifest.xml +17 -0
- package/Samples/xrToolkit/Plugins/Android/AndroidManifest.xml.meta +7 -0
- package/Samples/xrToolkit/Plugins/Android.meta +8 -0
- package/Samples/xrToolkit/Plugins.meta +8 -0
- package/Samples/xrToolkit/Prefabs/Anchor.prefab +229 -0
- package/Samples/xrToolkit/Prefabs/Anchor.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/BubbleParticlePrefab.prefab +4783 -0
- package/Samples/xrToolkit/Prefabs/BubbleParticlePrefab.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/ComplexGrabCube.prefab +234 -0
- package/Samples/xrToolkit/Prefabs/ComplexGrabCube.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/DeprecatedXROriginDemo.prefab +1697 -0
- package/Samples/xrToolkit/Prefabs/DeprecatedXROriginDemo.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/InstantCube.prefab +221 -0
- package/Samples/xrToolkit/Prefabs/InstantCube.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/InteractionZones/ComplexInteractions.prefab +2941 -0
- package/Samples/xrToolkit/Prefabs/InteractionZones/ComplexInteractions.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/InteractionZones/Locomotion Configuration Area.prefab +6398 -0
- package/Samples/xrToolkit/Prefabs/InteractionZones/Locomotion Configuration Area.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/InteractionZones/LocomotionArea.prefab +965 -0
- package/Samples/xrToolkit/Prefabs/InteractionZones/LocomotionArea.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/InteractionZones/SnapInteractions.prefab +3811 -0
- package/Samples/xrToolkit/Prefabs/InteractionZones/SnapInteractions.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/InteractionZones/StartingArea.prefab +2840 -0
- package/Samples/xrToolkit/Prefabs/InteractionZones/StartingArea.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/InteractionZones/UIArea.prefab +3210 -0
- package/Samples/xrToolkit/Prefabs/InteractionZones/UIArea.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/InteractionZones.meta +8 -0
- package/Samples/xrToolkit/Prefabs/KinematicCube.prefab +221 -0
- package/Samples/xrToolkit/Prefabs/KinematicCube.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/LlamaBubbleGunPrefab.prefab +1424 -0
- package/Samples/xrToolkit/Prefabs/LlamaBubbleGunPrefab.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/Locomotion System.prefab +82 -0
- package/Samples/xrToolkit/Prefabs/Locomotion System.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/Props.prefab +2200 -0
- package/Samples/xrToolkit/Prefabs/Props.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/Reticle.prefab +81 -0
- package/Samples/xrToolkit/Prefabs/Reticle.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/TeleportAnchor.prefab +328 -0
- package/Samples/xrToolkit/Prefabs/TeleportAnchor.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/TeleportAnchorPlatform.prefab +704 -0
- package/Samples/xrToolkit/Prefabs/TeleportAnchorPlatform.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/TeleportArea.prefab +954 -0
- package/Samples/xrToolkit/Prefabs/TeleportArea.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/VelocityTrackedCube.prefab +221 -0
- package/Samples/xrToolkit/Prefabs/VelocityTrackedCube.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/Workshop Set.prefab +435 -0
- package/Samples/xrToolkit/Prefabs/Workshop Set.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/XROriginDemo.prefab +2726 -0
- package/Samples/xrToolkit/Prefabs/XROriginDemo.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/controller.prefab +303 -0
- package/Samples/xrToolkit/Prefabs/controller.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/floatingAnchor.prefab +648 -0
- package/Samples/xrToolkit/Prefabs/floatingAnchor.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs/teleportReticle.prefab +128 -0
- package/Samples/xrToolkit/Prefabs/teleportReticle.prefab.meta +7 -0
- package/Samples/xrToolkit/Prefabs.meta +8 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/LightingData.asset +0 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/LightingData.asset.meta +8 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-0_comp_dir.png +0 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-0_comp_dir.png.meta +92 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-0_comp_light.exr +0 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-0_comp_light.exr.meta +117 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-1_comp_dir.png +0 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-1_comp_dir.png.meta +92 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-1_comp_light.exr +0 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/Lightmap-1_comp_light.exr.meta +117 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-0.exr +0 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-0.exr.meta +92 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-1.exr +0 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-1.exr.meta +92 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-2.exr +0 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-2.exr.meta +92 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-3.exr +0 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-3.exr.meta +92 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-4.exr +0 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-4.exr.meta +92 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-5.exr +0 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-5.exr.meta +92 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-6.exr +0 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo/ReflectionProbe-6.exr.meta +92 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo.meta +8 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo.unity +10487 -0
- package/Samples/xrToolkit/Scenes/DeprecatedWorldInteractionDemo.unity.meta +7 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/LightingData.asset +0 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/LightingData.asset.meta +8 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-0_comp_dir.png +0 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-0_comp_dir.png.meta +92 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-0_comp_light.exr +0 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-0_comp_light.exr.meta +117 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-1_comp_dir.png +0 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-1_comp_dir.png.meta +92 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-1_comp_light.exr +0 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/Lightmap-1_comp_light.exr.meta +117 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-0.exr +0 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-0.exr.meta +92 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-1.exr +0 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-1.exr.meta +92 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-2.exr +0 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-2.exr.meta +92 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-3.exr +0 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-3.exr.meta +92 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-4.exr +0 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-4.exr.meta +92 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-5.exr +0 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-5.exr.meta +92 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-6.exr +0 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo/ReflectionProbe-6.exr.meta +92 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo.meta +8 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo.unity +14118 -0
- package/Samples/xrToolkit/Scenes/WorldInteractionDemo.unity.meta +7 -0
- package/Samples/xrToolkit/Scenes.meta +8 -0
- package/Samples/xrToolkit/Textures/Concrete/Ground_Albedo.tif +0 -0
- package/Samples/xrToolkit/Textures/Concrete/Ground_Albedo.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Concrete/Ground_MetallicOcculusionSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Concrete/Ground_MetallicOcculusionSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Concrete/Ground_Normal.tif +0 -0
- package/Samples/xrToolkit/Textures/Concrete/Ground_Normal.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Concrete.meta +8 -0
- package/Samples/xrToolkit/Textures/Drywall/DrywallPainted_Normal.tif +0 -0
- package/Samples/xrToolkit/Textures/Drywall/DrywallPainted_Normal.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Drywall/Drywall_Albedo.tif +0 -0
- package/Samples/xrToolkit/Textures/Drywall/Drywall_Albedo.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Drywall/Drywall_AlbedoSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Drywall/Drywall_AlbedoSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Drywall/Drywall_Normal.tif +0 -0
- package/Samples/xrToolkit/Textures/Drywall/Drywall_Normal.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Drywall.meta +8 -0
- package/Samples/xrToolkit/Textures/GridBox_NewTex_Albedo.tga +0 -0
- package/Samples/xrToolkit/Textures/GridBox_NewTex_Albedo.tga.meta +92 -0
- package/Samples/xrToolkit/Textures/Metal/Metal_Albedo.tif +0 -0
- package/Samples/xrToolkit/Textures/Metal/Metal_Albedo.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Metal/Metal_MetallicSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Metal/Metal_MetallicSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Metal/Metal_Normal.tif +0 -0
- package/Samples/xrToolkit/Textures/Metal/Metal_Normal.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Metal.meta +8 -0
- package/Samples/xrToolkit/Textures/Plastic/Elastic_MetallicOcculusionSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Plastic/Elastic_MetallicOcculusionSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Plastic/Elastic_Normal.tif +0 -0
- package/Samples/xrToolkit/Textures/Plastic/Elastic_Normal.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Plastic/PlasticRidges_Albedo.tif +0 -0
- package/Samples/xrToolkit/Textures/Plastic/PlasticRidges_Albedo.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Plastic/PlasticRidges_MetallicOcculusionSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Plastic/PlasticRidges_MetallicOcculusionSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Plastic/PlasticRidges_Normal.tif +0 -0
- package/Samples/xrToolkit/Textures/Plastic/PlasticRidges_Normal.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Plastic/PlasticRough_Albedo.tif +0 -0
- package/Samples/xrToolkit/Textures/Plastic/PlasticRough_Albedo.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Plastic/PlasticRough_MetallicOcculusionSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Plastic/PlasticRough_MetallicOcculusionSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Plastic/Plastic_AlbedoSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Plastic/Plastic_AlbedoSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Plastic/Plastic_Normal.tif +0 -0
- package/Samples/xrToolkit/Textures/Plastic/Plastic_Normal.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Plastic.meta +8 -0
- package/Samples/xrToolkit/Textures/Props/Construction_Light/ConstructionLight_Albedo.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Construction_Light/ConstructionLight_Albedo.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Construction_Light/ConstructionLight_MetallicOcculusionSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Construction_Light/ConstructionLight_MetallicOcculusionSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Construction_Light.meta +8 -0
- package/Samples/xrToolkit/Textures/Props/Hammer/Hammer_Albedo.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Hammer/Hammer_Albedo.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Hammer/Hammer_MetallicOcculusionSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Hammer/Hammer_MetallicOcculusionSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Hammer/Hammer_Normal.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Hammer/Hammer_Normal.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Hammer.meta +8 -0
- package/Samples/xrToolkit/Textures/Props/HardHat/SafetyHat_Albedo.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/HardHat/SafetyHat_Albedo.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/HardHat/SafetyHat_MetallicOcculusionSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/HardHat/SafetyHat_MetallicOcculusionSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/HardHat/SafetyHat_Normal.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/HardHat/SafetyHat_Normal.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/HardHat.meta +8 -0
- package/Samples/xrToolkit/Textures/Props/Jigsaw/Jigsaw_Albedo.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Jigsaw/Jigsaw_Albedo.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Jigsaw/Jigsaw_MetallicOcculusionSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Jigsaw/Jigsaw_MetallicOcculusionSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Jigsaw/Jigsaw_Normal.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Jigsaw/Jigsaw_Normal.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Jigsaw.meta +8 -0
- package/Samples/xrToolkit/Textures/Props/Paint/Paint1G_Albedo.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Paint/Paint1G_Albedo.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Paint/Paint1G_MetallicOcculusionSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Paint/Paint1G_MetallicOcculusionSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Paint/Paint1G_Normal.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Paint/Paint1G_Normal.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Paint/Paint5G_AlbedoSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Paint/Paint5G_AlbedoSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Paint/Paintbrush_Albedo.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Paint/Paintbrush_Albedo.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Paint/Paintbrush_MetallicOcculusionSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Paint/Paintbrush_MetallicOcculusionSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Paint/Paintbrush_Normal.tif +0 -0
- package/Samples/xrToolkit/Textures/Props/Paint/Paintbrush_Normal.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Props/Paint.meta +8 -0
- package/Samples/xrToolkit/Textures/Props.meta +8 -0
- package/Samples/xrToolkit/Textures/TemplateEnvironmentSwatch.png +0 -0
- package/Samples/xrToolkit/Textures/TemplateEnvironmentSwatch.png.meta +92 -0
- package/Samples/xrToolkit/Textures/Wood/OBS_Albedo.tif +0 -0
- package/Samples/xrToolkit/Textures/Wood/OBS_Albedo.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Wood/OBS_MetallicOcculusionSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Wood/OBS_MetallicOcculusionSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Wood/OBS_Normal.tif +0 -0
- package/Samples/xrToolkit/Textures/Wood/OBS_Normal.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Wood/Plywood_Albedo.tif +0 -0
- package/Samples/xrToolkit/Textures/Wood/Plywood_Albedo.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Wood/Plywood_MetallicOcculusionSmoothness.tif +0 -0
- package/Samples/xrToolkit/Textures/Wood/Plywood_MetallicOcculusionSmoothness.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Wood/Plywood_Normal.tif +0 -0
- package/Samples/xrToolkit/Textures/Wood/Plywood_Normal.tif.meta +140 -0
- package/Samples/xrToolkit/Textures/Wood.meta +8 -0
- package/Samples/xrToolkit/Textures.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Fonts/Roboto-Medium SDF.asset +2721 -0
- package/Samples/xrToolkit/VR Examples/Fonts/Roboto-Medium SDF.asset.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Fonts.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Materials/NavyDarkGrid.mat +149 -0
- package/Samples/xrToolkit/VR Examples/Materials/NavyDarkGrid.mat.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Materials/NavyDarkSmooth.mat +149 -0
- package/Samples/xrToolkit/VR Examples/Materials/NavyDarkSmooth.mat.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Materials/NavyGrid.mat +149 -0
- package/Samples/xrToolkit/VR Examples/Materials/NavyGrid.mat.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Materials/NavySmooth.mat +149 -0
- package/Samples/xrToolkit/VR Examples/Materials/NavySmooth.mat.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Materials/PinkSmooth.mat +148 -0
- package/Samples/xrToolkit/VR Examples/Materials/PinkSmooth.mat.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Materials/SocketCannotHover.mat +139 -0
- package/Samples/xrToolkit/VR Examples/Materials/SocketCannotHover.mat.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Materials/SocketHover.mat +139 -0
- package/Samples/xrToolkit/VR Examples/Materials/SocketHover.mat.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Materials/SocketWall.mat +135 -0
- package/Samples/xrToolkit/VR Examples/Materials/SocketWall.mat.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Materials/Teleportation.mat +137 -0
- package/Samples/xrToolkit/VR Examples/Materials/Teleportation.mat.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Materials.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Models/teleportPlatform.fbx +0 -0
- package/Samples/xrToolkit/VR Examples/Models/teleportPlatform.fbx.meta +97 -0
- package/Samples/xrToolkit/VR Examples/Models.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/Anchor.prefab +229 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/Anchor.prefab.meta +7 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/Environment.prefab +108 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/Environment.prefab.meta +7 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/Lights.prefab +224 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/Lights.prefab.meta +7 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/Scene Introduction.prefab +312 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/Scene Introduction.prefab.meta +7 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/TooltipBlack.prefab +311 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/TooltipBlack.prefab.meta +7 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/TooltipBlackLarge.prefab +310 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/TooltipBlackLarge.prefab.meta +7 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/TooltipWhite.prefab +312 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/TooltipWhite.prefab.meta +7 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/XR Interaction Manager.prefab +45 -0
- package/Samples/xrToolkit/VR Examples/Prefabs/XR Interaction Manager.prefab.meta +7 -0
- package/Samples/xrToolkit/VR Examples/Prefabs.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Grab Interaction/LightingData.asset +0 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Grab Interaction/LightingData.asset.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Grab Interaction/ReflectionProbe-0.exr +0 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Grab Interaction/ReflectionProbe-0.exr.meta +92 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Grab Interaction.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Grab Interaction.unity +2018 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Grab Interaction.unity.meta +7 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Initial Tracking/LightingData.asset +0 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Initial Tracking/LightingData.asset.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Initial Tracking/ReflectionProbe-0.exr +0 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Initial Tracking/ReflectionProbe-0.exr.meta +92 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Initial Tracking.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Initial Tracking.unity +1639 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Initial Tracking.unity.meta +7 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Socket Interaction/LightingData.asset +0 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Socket Interaction/LightingData.asset.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Socket Interaction/ReflectionProbe-0.exr +0 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Socket Interaction/ReflectionProbe-0.exr.meta +92 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Socket Interaction.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Socket Interaction.unity +2491 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Socket Interaction.unity.meta +7 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Teleportation/LightingData.asset +0 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Teleportation/LightingData.asset.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Teleportation/ReflectionProbe-0.exr +0 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Teleportation/ReflectionProbe-0.exr.meta +92 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Teleportation.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Teleportation.unity +6239 -0
- package/Samples/xrToolkit/VR Examples/Scenes/Teleportation.unity.meta +7 -0
- package/Samples/xrToolkit/VR Examples/Scenes/UI Interaction/LightingData.asset +0 -0
- package/Samples/xrToolkit/VR Examples/Scenes/UI Interaction/LightingData.asset.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Scenes/UI Interaction/ReflectionProbe-0.exr +0 -0
- package/Samples/xrToolkit/VR Examples/Scenes/UI Interaction/ReflectionProbe-0.exr.meta +92 -0
- package/Samples/xrToolkit/VR Examples/Scenes/UI Interaction.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Scenes/UI Interaction.unity +5163 -0
- package/Samples/xrToolkit/VR Examples/Scenes/UI Interaction.unity.meta +7 -0
- package/Samples/xrToolkit/VR Examples/Scenes.meta +8 -0
- package/Samples/xrToolkit/VR Examples/Textures/GridEmissive.png +0 -0
- package/Samples/xrToolkit/VR Examples/Textures/GridEmissive.png.meta +92 -0
- package/Samples/xrToolkit/VR Examples/Textures/SwatchNavyAlbedo.png +0 -0
- package/Samples/xrToolkit/VR Examples/Textures/SwatchNavyAlbedo.png.meta +92 -0
- package/Samples/xrToolkit/VR Examples/Textures/SwatchNavyDarkAlbedo.png +0 -0
- package/Samples/xrToolkit/VR Examples/Textures/SwatchNavyDarkAlbedo.png.meta +92 -0
- package/Samples/xrToolkit/VR Examples/Textures/SwatchPinkAlbedo.png +0 -0
- package/Samples/xrToolkit/VR Examples/Textures/SwatchPinkAlbedo.png.meta +92 -0
- package/Samples/xrToolkit/VR Examples/Textures/SwatchWhiteAlbedo.png +0 -0
- package/Samples/xrToolkit/VR Examples/Textures/SwatchWhiteAlbedo.png.meta +92 -0
- package/Samples/xrToolkit/VR Examples/Textures.meta +8 -0
- package/Samples/xrToolkit/VR Examples.meta +8 -0
- package/Samples/xrToolkit/XR/Loaders/Oculus Loader.asset +14 -0
- package/Samples/xrToolkit/XR/Loaders/Oculus Loader.asset.meta +8 -0
- package/Samples/xrToolkit/XR/Loaders/Windows MR Loader.asset +14 -0
- package/Samples/xrToolkit/XR/Loaders/Windows MR Loader.asset.meta +8 -0
- package/Samples/xrToolkit/XR/Loaders.meta +8 -0
- package/Samples/xrToolkit/XR/Settings/Oculus Settings.asset +23 -0
- package/Samples/xrToolkit/XR/Settings/Oculus Settings.asset.meta +8 -0
- package/Samples/xrToolkit/XR/Settings/Windows MR Package Settings.asset +47 -0
- package/Samples/xrToolkit/XR/Settings/Windows MR Package Settings.asset.meta +8 -0
- package/Samples/xrToolkit/XR/Settings.meta +8 -0
- package/Samples/xrToolkit/XR/XRGeneralSettings.asset +173 -0
- package/Samples/xrToolkit/XR/XRGeneralSettings.asset.meta +8 -0
- package/Samples/xrToolkit/XR.meta +8 -0
- package/Samples/xrToolkit/XRI/Settings/XRInteractionEditorSettings.asset +16 -0
- package/Samples/xrToolkit/XRI/Settings/XRInteractionEditorSettings.asset.meta +8 -0
- package/Samples/xrToolkit/XRI/Settings.meta +8 -0
- package/Samples/xrToolkit/XRI.meta +8 -0
- package/Samples/xrToolkit/XR_UniversalRenderPipelineAsset.asset +136 -0
- package/Samples/xrToolkit/XR_UniversalRenderPipelineAsset.asset.meta +8 -0
- package/Samples/xrToolkit/XR_UniversalRenderPipelineAsset_Renderer.asset +38 -0
- package/Samples/xrToolkit/XR_UniversalRenderPipelineAsset_Renderer.asset.meta +8 -0
- package/Samples/xrToolkit.meta +8 -0
- package/Samples.meta +8 -0
- package/package.json +52 -0
- package/package.json.meta +7 -0
|
@@ -0,0 +1,730 @@
|
|
|
1
|
+
using System;
|
|
2
|
+
using System.Collections.Generic;
|
|
3
|
+
using UnityEngine.UI;
|
|
4
|
+
|
|
5
|
+
namespace UnityEngine.XR.Interaction.Toolkit.Examples
|
|
6
|
+
{
|
|
7
|
+
/// <summary>
|
|
8
|
+
/// Use this class to present locomotion control schemes and configuration preferences,
|
|
9
|
+
/// and respond to player input in the UI to set them.
|
|
10
|
+
/// </summary>
|
|
11
|
+
/// <seealso cref="LocomotionSchemeManager"/>
|
|
12
|
+
public class LocomotionConfigurationMenu : MonoBehaviour
|
|
13
|
+
{
|
|
14
|
+
class EnumDropdownCache<T> where T : Enum
|
|
15
|
+
{
|
|
16
|
+
public List<Dropdown.OptionData> options { get; } = new List<Dropdown.OptionData>();
|
|
17
|
+
|
|
18
|
+
readonly List<T> m_Values = new List<T>();
|
|
19
|
+
|
|
20
|
+
public EnumDropdownCache()
|
|
21
|
+
{
|
|
22
|
+
foreach (var name in Enum.GetNames(typeof(T)))
|
|
23
|
+
{
|
|
24
|
+
options.Add(new Dropdown.OptionData(name));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
foreach (var value in Enum.GetValues(typeof(T)))
|
|
28
|
+
{
|
|
29
|
+
m_Values.Add((T)value);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public T GetValue(int index)
|
|
34
|
+
{
|
|
35
|
+
return m_Values[index];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public int FindIndex(T value)
|
|
39
|
+
{
|
|
40
|
+
// This will not distinguish between enums with duplicate values,
|
|
41
|
+
// and will always select the first equal value.
|
|
42
|
+
var comparer = EqualityComparer<T>.Default;
|
|
43
|
+
for (var index = 0; index < m_Values.Count; ++index)
|
|
44
|
+
{
|
|
45
|
+
if (comparer.Equals(m_Values[index], value))
|
|
46
|
+
{
|
|
47
|
+
return index;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return -1;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[SerializeField]
|
|
56
|
+
[Tooltip("Stores the Toggle used to enable or disable continuous movement locomotion.")]
|
|
57
|
+
Toggle m_ContinuousMoveToggle;
|
|
58
|
+
/// <summary>
|
|
59
|
+
/// Stores the <see cref="Toggle"/> used to enable or disable continuous movement locomotion.
|
|
60
|
+
/// </summary>
|
|
61
|
+
public Toggle continuousMoveToggle
|
|
62
|
+
{
|
|
63
|
+
get => m_ContinuousMoveToggle;
|
|
64
|
+
set
|
|
65
|
+
{
|
|
66
|
+
UnsubscribeContinuousMove(m_ContinuousMoveToggle);
|
|
67
|
+
m_ContinuousMoveToggle = value;
|
|
68
|
+
SubscribeContinuousMove(m_ContinuousMoveToggle);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[SerializeField]
|
|
73
|
+
[Tooltip("Stores the Slider used to set the move speed of continuous movement.")]
|
|
74
|
+
Slider m_MoveSpeedSlider;
|
|
75
|
+
/// <summary>
|
|
76
|
+
/// Stores the <see cref="Slider"/> used to set the move speed of continuous movement.
|
|
77
|
+
/// </summary>
|
|
78
|
+
public Slider moveSpeedSlider
|
|
79
|
+
{
|
|
80
|
+
get => m_MoveSpeedSlider;
|
|
81
|
+
set
|
|
82
|
+
{
|
|
83
|
+
UnsubscribeMoveSpeed(m_MoveSpeedSlider);
|
|
84
|
+
m_MoveSpeedSlider = value;
|
|
85
|
+
SubscribeMoveSpeed(m_MoveSpeedSlider, m_MoveSpeedValueText);
|
|
86
|
+
RefreshMoveDependentInteractable();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[SerializeField]
|
|
91
|
+
[Tooltip("Stores the Text used to display the current move speed of continuous movement.")]
|
|
92
|
+
Text m_MoveSpeedValueText;
|
|
93
|
+
/// <summary>
|
|
94
|
+
/// Stores the <see cref="Text"/> used to display the current move speed of continuous movement.
|
|
95
|
+
/// </summary>
|
|
96
|
+
public Text moveSpeedValueText
|
|
97
|
+
{
|
|
98
|
+
get => m_MoveSpeedValueText;
|
|
99
|
+
set
|
|
100
|
+
{
|
|
101
|
+
UnsubscribeMoveSpeed(m_MoveSpeedSlider);
|
|
102
|
+
m_MoveSpeedValueText = value;
|
|
103
|
+
SubscribeMoveSpeed(m_MoveSpeedSlider, m_MoveSpeedValueText);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
[SerializeField]
|
|
108
|
+
[Tooltip("Stores the Toggle used to enable or disable strafing (sideways movement) of continuous movement.")]
|
|
109
|
+
Toggle m_EnableStrafeToggle;
|
|
110
|
+
/// <summary>
|
|
111
|
+
/// Stores the <see cref="Toggle"/> used to enable or disable strafing (sideways movement) of continuous movement.
|
|
112
|
+
/// </summary>
|
|
113
|
+
public Toggle enableStrafeToggle
|
|
114
|
+
{
|
|
115
|
+
get => m_EnableStrafeToggle;
|
|
116
|
+
set
|
|
117
|
+
{
|
|
118
|
+
UnsubscribeEnableStrafe(m_EnableStrafeToggle);
|
|
119
|
+
m_EnableStrafeToggle = value;
|
|
120
|
+
SubscribeEnableStrafe(m_EnableStrafeToggle);
|
|
121
|
+
RefreshMoveDependentInteractable();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[SerializeField]
|
|
126
|
+
[Tooltip("Stores the Toggle used to enable or disable gravity on continuous movement.")]
|
|
127
|
+
Toggle m_UseGravityToggle;
|
|
128
|
+
/// <summary>
|
|
129
|
+
/// Stores the <see cref="Toggle"/> used to enable or disable gravity on continuous movement.
|
|
130
|
+
/// </summary>
|
|
131
|
+
public Toggle useGravityToggle
|
|
132
|
+
{
|
|
133
|
+
get => m_UseGravityToggle;
|
|
134
|
+
set
|
|
135
|
+
{
|
|
136
|
+
UnsubscribeUseGravity(m_UseGravityToggle);
|
|
137
|
+
m_UseGravityToggle = value;
|
|
138
|
+
SubscribeUseGravity(m_UseGravityToggle);
|
|
139
|
+
RefreshMoveDependentInteractable();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
[SerializeField]
|
|
144
|
+
[Tooltip("Stores the Dropdown used to select when gravity is applied with continuous movement.")]
|
|
145
|
+
Dropdown m_GravityApplicationModeDropdown;
|
|
146
|
+
/// <summary>
|
|
147
|
+
/// Stores the <see cref="Dropdown"/> used to select when gravity is applied with continuous movement.
|
|
148
|
+
/// </summary>
|
|
149
|
+
public Dropdown gravityApplicationModeDropdown
|
|
150
|
+
{
|
|
151
|
+
get => m_GravityApplicationModeDropdown;
|
|
152
|
+
set
|
|
153
|
+
{
|
|
154
|
+
UnsubscribeGravityApplicationMode(m_GravityApplicationModeDropdown);
|
|
155
|
+
m_GravityApplicationModeDropdown = value;
|
|
156
|
+
SubscribeGravityApplicationMode(m_GravityApplicationModeDropdown);
|
|
157
|
+
RefreshMoveDependentInteractable();
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
[SerializeField]
|
|
162
|
+
[Tooltip("Stores the Dropdown used to select the source Transform to define the forward direction of continuous movement.")]
|
|
163
|
+
Dropdown m_ForwardSourceDropdown;
|
|
164
|
+
/// <summary>
|
|
165
|
+
/// Stores the <see cref="Dropdown"/> used to select the source <see cref="Transform"/> to define the forward direction of continuous movement.
|
|
166
|
+
/// </summary>
|
|
167
|
+
public Dropdown forwardSourceDropdown
|
|
168
|
+
{
|
|
169
|
+
get => m_ForwardSourceDropdown;
|
|
170
|
+
set
|
|
171
|
+
{
|
|
172
|
+
UnsubscribeForwardSource(m_ForwardSourceDropdown);
|
|
173
|
+
m_ForwardSourceDropdown = value;
|
|
174
|
+
SubscribeForwardSource(m_ForwardSourceDropdown);
|
|
175
|
+
RefreshMoveDependentInteractable();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
[SerializeField]
|
|
180
|
+
[Tooltip("Stores the Toggle used to enable or disable continuous turn locomotion.")]
|
|
181
|
+
Toggle m_ContinuousTurnToggle;
|
|
182
|
+
/// <summary>
|
|
183
|
+
/// Stores the <see cref="Toggle"/> used to enable or disable continuous turn locomotion.
|
|
184
|
+
/// </summary>
|
|
185
|
+
public Toggle continuousTurnToggle
|
|
186
|
+
{
|
|
187
|
+
get => m_ContinuousTurnToggle;
|
|
188
|
+
set
|
|
189
|
+
{
|
|
190
|
+
UnsubscribeContinuousTurn(m_ContinuousTurnToggle);
|
|
191
|
+
m_ContinuousTurnToggle = value;
|
|
192
|
+
SubscribeContinuousTurn(m_ContinuousTurnToggle);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
[SerializeField]
|
|
197
|
+
[Tooltip("Stores the Slider used to set the turn speed of continuous turning.")]
|
|
198
|
+
Slider m_TurnSpeedSlider;
|
|
199
|
+
/// <summary>
|
|
200
|
+
/// Stores the <see cref="Slider"/> used to set the turn speed of continuous turning.
|
|
201
|
+
/// </summary>
|
|
202
|
+
public Slider turnSpeedSlider
|
|
203
|
+
{
|
|
204
|
+
get => m_TurnSpeedSlider;
|
|
205
|
+
set
|
|
206
|
+
{
|
|
207
|
+
UnsubscribeTurnSpeed(m_TurnSpeedSlider);
|
|
208
|
+
m_TurnSpeedSlider = value;
|
|
209
|
+
SubscribeTurnSpeed(m_TurnSpeedSlider, m_TurnSpeedValueText);
|
|
210
|
+
RefreshTurnDependentInteractable();
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
[SerializeField]
|
|
215
|
+
[Tooltip("Stores the Text used to display the current turn speed of continuous turning.")]
|
|
216
|
+
Text m_TurnSpeedValueText;
|
|
217
|
+
/// <summary>
|
|
218
|
+
/// Stores the <see cref="Text"/> used to display the current turn speed of continuous turning.
|
|
219
|
+
/// </summary>
|
|
220
|
+
public Text turnSpeedValueText
|
|
221
|
+
{
|
|
222
|
+
get => m_TurnSpeedValueText;
|
|
223
|
+
set
|
|
224
|
+
{
|
|
225
|
+
UnsubscribeTurnSpeed(m_TurnSpeedSlider);
|
|
226
|
+
m_TurnSpeedValueText = value;
|
|
227
|
+
SubscribeTurnSpeed(m_TurnSpeedSlider, m_TurnSpeedValueText);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
[SerializeField]
|
|
232
|
+
[Tooltip("Stores the Dropdown used to select the number of degrees to rotate for snap turning.")]
|
|
233
|
+
Dropdown m_SnapTurnAmountDropdown;
|
|
234
|
+
/// <summary>
|
|
235
|
+
/// Stores the <see cref="Dropdown"/> used to select the number of degrees to rotate for snap turning.
|
|
236
|
+
/// </summary>
|
|
237
|
+
public Dropdown snapTurnAmountDropdown
|
|
238
|
+
{
|
|
239
|
+
get => m_SnapTurnAmountDropdown;
|
|
240
|
+
set
|
|
241
|
+
{
|
|
242
|
+
UnsubscribeSnapTurnAmount(m_SnapTurnAmountDropdown);
|
|
243
|
+
m_SnapTurnAmountDropdown = value;
|
|
244
|
+
SubscribeSnapTurnAmount(m_SnapTurnAmountDropdown);
|
|
245
|
+
RefreshTurnDependentInteractable();
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
[SerializeField]
|
|
250
|
+
[Tooltip("Stores the Toggle used to enable or disable 180° snap turns.")]
|
|
251
|
+
Toggle m_EnableTurnAroundToggle;
|
|
252
|
+
/// <summary>
|
|
253
|
+
/// Stores the <see cref="Toggle"/> used to enable or disable 180° snap turns.
|
|
254
|
+
/// </summary>
|
|
255
|
+
public Toggle enableTurnAroundToggle
|
|
256
|
+
{
|
|
257
|
+
get => m_EnableTurnAroundToggle;
|
|
258
|
+
set
|
|
259
|
+
{
|
|
260
|
+
UnsubscribeEnableTurnAround(m_EnableTurnAroundToggle);
|
|
261
|
+
m_EnableTurnAroundToggle = value;
|
|
262
|
+
SubscribeEnableTurnAround(m_EnableTurnAroundToggle);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
[SerializeField]
|
|
267
|
+
[Tooltip("Stores the behavior that will be used to configure locomotion control schemes and configuration preferences.")]
|
|
268
|
+
LocomotionSchemeManager m_Manager;
|
|
269
|
+
/// <summary>
|
|
270
|
+
/// Stores the behavior that will be used to configure locomotion control schemes and configuration preferences.
|
|
271
|
+
/// </summary>
|
|
272
|
+
public LocomotionSchemeManager manager
|
|
273
|
+
{
|
|
274
|
+
get => m_Manager;
|
|
275
|
+
set
|
|
276
|
+
{
|
|
277
|
+
UnsubscribeAll();
|
|
278
|
+
m_Manager = value;
|
|
279
|
+
if (m_Manager != null)
|
|
280
|
+
{
|
|
281
|
+
SubscribeAll();
|
|
282
|
+
RefreshInteractable();
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
static readonly List<float> k_SnapTurnAmounts = new List<float> { 15f, 30f, 45f, 60f, 75f, 90f };
|
|
288
|
+
|
|
289
|
+
static readonly List<Dropdown.OptionData> k_SnapTurnAmountOptions = new List<Dropdown.OptionData>(k_SnapTurnAmounts.Count);
|
|
290
|
+
|
|
291
|
+
static EnumDropdownCache<ContinuousMoveProviderBase.GravityApplicationMode> s_GravityApplicationModeDropdownCache;
|
|
292
|
+
|
|
293
|
+
static EnumDropdownCache<LocomotionSchemeManager.MoveForwardSource> s_ForwardSourceDropdownCache;
|
|
294
|
+
|
|
295
|
+
protected void Awake()
|
|
296
|
+
{
|
|
297
|
+
// Initialize Dropdown options for Snap Turn Amount
|
|
298
|
+
if (k_SnapTurnAmountOptions.Count != k_SnapTurnAmounts.Count)
|
|
299
|
+
{
|
|
300
|
+
foreach (var value in k_SnapTurnAmounts)
|
|
301
|
+
{
|
|
302
|
+
k_SnapTurnAmountOptions.Add(new Dropdown.OptionData($"{value}°"));
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// Initialize Dropdown options for Gravity Application Mode
|
|
307
|
+
if (s_GravityApplicationModeDropdownCache == null)
|
|
308
|
+
{
|
|
309
|
+
s_GravityApplicationModeDropdownCache = new EnumDropdownCache<ContinuousMoveProviderBase.GravityApplicationMode>();
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
// Initialize Dropdown options for Forward Source
|
|
313
|
+
if (s_ForwardSourceDropdownCache == null)
|
|
314
|
+
{
|
|
315
|
+
s_ForwardSourceDropdownCache = new EnumDropdownCache<LocomotionSchemeManager.MoveForwardSource>();
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
protected void OnEnable()
|
|
320
|
+
{
|
|
321
|
+
if (!ValidateManager())
|
|
322
|
+
return;
|
|
323
|
+
|
|
324
|
+
SubscribeAll();
|
|
325
|
+
RefreshInteractable();
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
protected void OnDisable()
|
|
329
|
+
{
|
|
330
|
+
UnsubscribeAll();
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
void SubscribeAll()
|
|
334
|
+
{
|
|
335
|
+
SubscribeContinuousMove(m_ContinuousMoveToggle);
|
|
336
|
+
SubscribeMoveSpeed(m_MoveSpeedSlider, m_MoveSpeedValueText);
|
|
337
|
+
SubscribeEnableStrafe(m_EnableStrafeToggle);
|
|
338
|
+
SubscribeUseGravity(m_UseGravityToggle);
|
|
339
|
+
SubscribeGravityApplicationMode(m_GravityApplicationModeDropdown);
|
|
340
|
+
SubscribeForwardSource(m_ForwardSourceDropdown);
|
|
341
|
+
SubscribeContinuousTurn(m_ContinuousTurnToggle);
|
|
342
|
+
SubscribeTurnSpeed(m_TurnSpeedSlider, m_TurnSpeedValueText);
|
|
343
|
+
SubscribeSnapTurnAmount(m_SnapTurnAmountDropdown);
|
|
344
|
+
SubscribeEnableTurnAround(m_EnableTurnAroundToggle);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
void UnsubscribeAll()
|
|
348
|
+
{
|
|
349
|
+
UnsubscribeContinuousMove(m_ContinuousMoveToggle);
|
|
350
|
+
UnsubscribeMoveSpeed(m_MoveSpeedSlider);
|
|
351
|
+
UnsubscribeEnableStrafe(m_EnableStrafeToggle);
|
|
352
|
+
UnsubscribeUseGravity(m_UseGravityToggle);
|
|
353
|
+
UnsubscribeGravityApplicationMode(m_GravityApplicationModeDropdown);
|
|
354
|
+
UnsubscribeForwardSource(m_ForwardSourceDropdown);
|
|
355
|
+
UnsubscribeContinuousTurn(m_ContinuousTurnToggle);
|
|
356
|
+
UnsubscribeTurnSpeed(m_TurnSpeedSlider);
|
|
357
|
+
UnsubscribeSnapTurnAmount(m_SnapTurnAmountDropdown);
|
|
358
|
+
UnsubscribeEnableTurnAround(m_EnableTurnAroundToggle);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/// <summary>
|
|
362
|
+
/// Grey out input options that don't apply to the current control scheme.
|
|
363
|
+
/// </summary>
|
|
364
|
+
void RefreshInteractable()
|
|
365
|
+
{
|
|
366
|
+
if (!ValidateManager())
|
|
367
|
+
return;
|
|
368
|
+
|
|
369
|
+
RefreshMoveDependentInteractable();
|
|
370
|
+
RefreshTurnDependentInteractable();
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
void RefreshMoveDependentInteractable()
|
|
374
|
+
{
|
|
375
|
+
if (!ValidateManager())
|
|
376
|
+
return;
|
|
377
|
+
|
|
378
|
+
var continuousMove = m_Manager.moveScheme == LocomotionSchemeManager.MoveScheme.Continuous;
|
|
379
|
+
RefreshMoveDependentInteractable(continuousMove);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
void RefreshMoveDependentInteractable(bool continuous)
|
|
383
|
+
{
|
|
384
|
+
if (m_MoveSpeedSlider != null)
|
|
385
|
+
m_MoveSpeedSlider.interactable = continuous;
|
|
386
|
+
if (m_EnableStrafeToggle != null)
|
|
387
|
+
m_EnableStrafeToggle.interactable = continuous;
|
|
388
|
+
if (m_UseGravityToggle != null)
|
|
389
|
+
m_UseGravityToggle.interactable = continuous;
|
|
390
|
+
if (m_GravityApplicationModeDropdown != null)
|
|
391
|
+
m_GravityApplicationModeDropdown.interactable = continuous;
|
|
392
|
+
if (m_ForwardSourceDropdown != null)
|
|
393
|
+
m_ForwardSourceDropdown.interactable = continuous;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
void RefreshTurnDependentInteractable()
|
|
397
|
+
{
|
|
398
|
+
if (!ValidateManager())
|
|
399
|
+
return;
|
|
400
|
+
|
|
401
|
+
var continuousTurn = m_Manager.turnStyle == LocomotionSchemeManager.TurnStyle.Continuous;
|
|
402
|
+
RefreshTurnDependentInteractable(continuousTurn);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
void RefreshTurnDependentInteractable(bool continuous)
|
|
406
|
+
{
|
|
407
|
+
if (m_TurnSpeedSlider != null)
|
|
408
|
+
m_TurnSpeedSlider.interactable = continuous;
|
|
409
|
+
if (m_SnapTurnAmountDropdown != null)
|
|
410
|
+
m_SnapTurnAmountDropdown.interactable = !continuous;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
bool ValidateManager()
|
|
414
|
+
{
|
|
415
|
+
if (m_Manager == null)
|
|
416
|
+
{
|
|
417
|
+
Debug.LogError($"Reference to the {nameof(LocomotionSchemeManager)} is not set or the object has been destroyed," +
|
|
418
|
+
" configuring locomotion settings from the menu will not be possible." +
|
|
419
|
+
" Ensure the value has been set in the Inspector.", this);
|
|
420
|
+
return false;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
if (m_Manager.continuousMoveProvider == null)
|
|
424
|
+
{
|
|
425
|
+
Debug.LogError($"Reference to the {nameof(ContinuousMoveProviderBase)} is not set or the object has been destroyed," +
|
|
426
|
+
" configuring locomotion settings from the menu will not be possible." +
|
|
427
|
+
$" Ensure the value has been set in the Inspector on {m_Manager}.", this);
|
|
428
|
+
return false;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
if (m_Manager.continuousTurnProvider == null)
|
|
432
|
+
{
|
|
433
|
+
Debug.LogError($"Reference to the {nameof(ContinuousTurnProviderBase)} is not set or the object has been destroyed," +
|
|
434
|
+
" configuring locomotion settings from the menu will not be possible." +
|
|
435
|
+
$" Ensure the value has been set in the Inspector on {m_Manager}.", this);
|
|
436
|
+
return false;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
if (m_Manager.snapTurnProvider == null)
|
|
440
|
+
{
|
|
441
|
+
Debug.LogError($"Reference to the {nameof(SnapTurnProviderBase)} is not set or the object has been destroyed," +
|
|
442
|
+
" configuring locomotion settings from the menu will not be possible." +
|
|
443
|
+
$" Ensure the value has been set in the Inspector on {m_Manager}.", this);
|
|
444
|
+
return false;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
return true;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
void SubscribeContinuousMove(Toggle toggle)
|
|
451
|
+
{
|
|
452
|
+
if (toggle == null)
|
|
453
|
+
return;
|
|
454
|
+
if (!ValidateManager())
|
|
455
|
+
return;
|
|
456
|
+
|
|
457
|
+
var continuousMove = m_Manager.moveScheme == LocomotionSchemeManager.MoveScheme.Continuous;
|
|
458
|
+
toggle.isOn = continuousMove;
|
|
459
|
+
toggle.onValueChanged.AddListener(OnContinuousMoveToggleValueChanged);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
void SubscribeMoveSpeed(Slider slider, Text valueText)
|
|
463
|
+
{
|
|
464
|
+
if (slider == null)
|
|
465
|
+
return;
|
|
466
|
+
if (!ValidateManager())
|
|
467
|
+
return;
|
|
468
|
+
|
|
469
|
+
var currentMoveSpeed = m_Manager.continuousMoveProvider.moveSpeed;
|
|
470
|
+
if (currentMoveSpeed < slider.minValue || currentMoveSpeed > slider.maxValue)
|
|
471
|
+
{
|
|
472
|
+
Debug.LogError($"Move speed {currentMoveSpeed} is outside [{slider.minValue}, {slider.maxValue}] range of slider.");
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
slider.value = currentMoveSpeed;
|
|
476
|
+
if (valueText != null)
|
|
477
|
+
{
|
|
478
|
+
valueText.text = $"{currentMoveSpeed:F2}";
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
slider.onValueChanged.AddListener(OnMoveSpeedSliderValueChanged);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
void SubscribeEnableStrafe(Toggle toggle)
|
|
485
|
+
{
|
|
486
|
+
if (toggle == null)
|
|
487
|
+
return;
|
|
488
|
+
if (!ValidateManager())
|
|
489
|
+
return;
|
|
490
|
+
|
|
491
|
+
toggle.isOn = m_Manager.continuousMoveProvider.enableStrafe;
|
|
492
|
+
toggle.onValueChanged.AddListener(OnEnableStrafeToggleValueChanged);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
void SubscribeUseGravity(Toggle toggle)
|
|
496
|
+
{
|
|
497
|
+
if (toggle == null)
|
|
498
|
+
return;
|
|
499
|
+
if (!ValidateManager())
|
|
500
|
+
return;
|
|
501
|
+
|
|
502
|
+
toggle.isOn = m_Manager.continuousMoveProvider.useGravity;
|
|
503
|
+
toggle.onValueChanged.AddListener(OnUseGravityToggleValueChanged);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
void SubscribeGravityApplicationMode(Dropdown dropdown)
|
|
507
|
+
{
|
|
508
|
+
if (dropdown == null)
|
|
509
|
+
return;
|
|
510
|
+
if (!ValidateManager())
|
|
511
|
+
return;
|
|
512
|
+
|
|
513
|
+
dropdown.options = s_GravityApplicationModeDropdownCache.options;
|
|
514
|
+
dropdown.value = s_GravityApplicationModeDropdownCache.FindIndex(m_Manager.continuousMoveProvider.gravityApplicationMode);
|
|
515
|
+
dropdown.onValueChanged.AddListener(OnGravityApplicationModeDropdownValueChanged);
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
void SubscribeForwardSource(Dropdown dropdown)
|
|
519
|
+
{
|
|
520
|
+
if (dropdown == null)
|
|
521
|
+
return;
|
|
522
|
+
if (!ValidateManager())
|
|
523
|
+
return;
|
|
524
|
+
|
|
525
|
+
dropdown.options = s_ForwardSourceDropdownCache.options;
|
|
526
|
+
dropdown.value = s_ForwardSourceDropdownCache.FindIndex(m_Manager.moveForwardSource);
|
|
527
|
+
dropdown.onValueChanged.AddListener(OnForwardSourceDropdownValueChanged);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
void SubscribeContinuousTurn(Toggle toggle)
|
|
531
|
+
{
|
|
532
|
+
if (toggle == null)
|
|
533
|
+
return;
|
|
534
|
+
if (!ValidateManager())
|
|
535
|
+
return;
|
|
536
|
+
|
|
537
|
+
var continuousTurn = m_Manager.turnStyle == LocomotionSchemeManager.TurnStyle.Continuous;
|
|
538
|
+
toggle.isOn = continuousTurn;
|
|
539
|
+
toggle.onValueChanged.AddListener(OnContinuousTurnToggleValueChanged);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
void SubscribeTurnSpeed(Slider slider, Text valueText)
|
|
543
|
+
{
|
|
544
|
+
if (slider == null)
|
|
545
|
+
return;
|
|
546
|
+
if (!ValidateManager())
|
|
547
|
+
return;
|
|
548
|
+
|
|
549
|
+
var currentTurnSpeed = m_Manager.continuousTurnProvider.turnSpeed;
|
|
550
|
+
if (currentTurnSpeed < slider.minValue || currentTurnSpeed > slider.maxValue)
|
|
551
|
+
{
|
|
552
|
+
Debug.LogError($"Turn speed {currentTurnSpeed} is outside [{slider.minValue}, {slider.maxValue}] range of slider.");
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
slider.value = currentTurnSpeed;
|
|
556
|
+
if (valueText != null)
|
|
557
|
+
{
|
|
558
|
+
valueText.text = currentTurnSpeed.ToString();
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
slider.onValueChanged.AddListener(OnTurnSpeedSliderValueChanged);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
void SubscribeSnapTurnAmount(Dropdown dropdown)
|
|
565
|
+
{
|
|
566
|
+
if (dropdown == null)
|
|
567
|
+
return;
|
|
568
|
+
if (!ValidateManager())
|
|
569
|
+
return;
|
|
570
|
+
|
|
571
|
+
dropdown.options = k_SnapTurnAmountOptions;
|
|
572
|
+
var currentTurnAmount = m_Manager.snapTurnProvider.turnAmount;
|
|
573
|
+
|
|
574
|
+
// Find the index of the current turn amount within the options list of the Dropdown
|
|
575
|
+
var snapTurnIndex = -1;
|
|
576
|
+
for (var index = 0; index < k_SnapTurnAmounts.Count; ++index)
|
|
577
|
+
{
|
|
578
|
+
var value = k_SnapTurnAmounts[index];
|
|
579
|
+
if (Mathf.Approximately(value, currentTurnAmount))
|
|
580
|
+
{
|
|
581
|
+
snapTurnIndex = index;
|
|
582
|
+
break;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
if (snapTurnIndex < 0)
|
|
587
|
+
{
|
|
588
|
+
Debug.LogError($"Turn amount {currentTurnAmount} is not contained within options list {{{string.Join(", ", k_SnapTurnAmounts)}}}", this);
|
|
589
|
+
}
|
|
590
|
+
else
|
|
591
|
+
{
|
|
592
|
+
dropdown.value = snapTurnIndex;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
dropdown.onValueChanged.AddListener(OnSnapTurnAmountDropdownValueChanged);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
void SubscribeEnableTurnAround(Toggle toggle)
|
|
599
|
+
{
|
|
600
|
+
if (toggle == null)
|
|
601
|
+
return;
|
|
602
|
+
if (!ValidateManager())
|
|
603
|
+
return;
|
|
604
|
+
|
|
605
|
+
toggle.isOn = m_Manager.snapTurnProvider.enableTurnAround;
|
|
606
|
+
toggle.onValueChanged.AddListener(OnEnableTurnAroundToggleValueChanged);
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
void UnsubscribeContinuousMove(Toggle toggle)
|
|
610
|
+
{
|
|
611
|
+
if (toggle != null)
|
|
612
|
+
toggle.onValueChanged.RemoveListener(OnContinuousMoveToggleValueChanged);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
void UnsubscribeMoveSpeed(Slider slider)
|
|
616
|
+
{
|
|
617
|
+
if (slider != null)
|
|
618
|
+
slider.onValueChanged.RemoveListener(OnMoveSpeedSliderValueChanged);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
void UnsubscribeEnableStrafe(Toggle toggle)
|
|
622
|
+
{
|
|
623
|
+
if (toggle != null)
|
|
624
|
+
toggle.onValueChanged.RemoveListener(OnEnableStrafeToggleValueChanged);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
void UnsubscribeUseGravity(Toggle toggle)
|
|
628
|
+
{
|
|
629
|
+
if (toggle != null)
|
|
630
|
+
toggle.onValueChanged.RemoveListener(OnUseGravityToggleValueChanged);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
void UnsubscribeGravityApplicationMode(Dropdown dropdown)
|
|
634
|
+
{
|
|
635
|
+
if (dropdown != null)
|
|
636
|
+
dropdown.onValueChanged.RemoveListener(OnGravityApplicationModeDropdownValueChanged);
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
void UnsubscribeForwardSource(Dropdown dropdown)
|
|
640
|
+
{
|
|
641
|
+
if (dropdown != null)
|
|
642
|
+
dropdown.onValueChanged.RemoveListener(OnForwardSourceDropdownValueChanged);
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
void UnsubscribeContinuousTurn(Toggle toggle)
|
|
646
|
+
{
|
|
647
|
+
if (toggle != null)
|
|
648
|
+
toggle.onValueChanged.RemoveListener(OnContinuousTurnToggleValueChanged);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
void UnsubscribeTurnSpeed(Slider slider)
|
|
652
|
+
{
|
|
653
|
+
if (slider != null)
|
|
654
|
+
slider.onValueChanged.RemoveListener(OnTurnSpeedSliderValueChanged);
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
void UnsubscribeSnapTurnAmount(Dropdown dropdown)
|
|
658
|
+
{
|
|
659
|
+
if (dropdown != null)
|
|
660
|
+
dropdown.onValueChanged.RemoveListener(OnSnapTurnAmountDropdownValueChanged);
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
void UnsubscribeEnableTurnAround(Toggle toggle)
|
|
664
|
+
{
|
|
665
|
+
if (toggle != null)
|
|
666
|
+
toggle.onValueChanged.RemoveListener(OnEnableTurnAroundToggleValueChanged);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
void OnContinuousMoveToggleValueChanged(bool value)
|
|
670
|
+
{
|
|
671
|
+
m_Manager.moveScheme = value
|
|
672
|
+
? LocomotionSchemeManager.MoveScheme.Continuous
|
|
673
|
+
: LocomotionSchemeManager.MoveScheme.Noncontinuous;
|
|
674
|
+
|
|
675
|
+
RefreshMoveDependentInteractable(value);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
void OnMoveSpeedSliderValueChanged(float value)
|
|
679
|
+
{
|
|
680
|
+
m_Manager.continuousMoveProvider.moveSpeed = value;
|
|
681
|
+
m_MoveSpeedValueText.text = $"{value:F2}";
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
void OnEnableStrafeToggleValueChanged(bool value)
|
|
685
|
+
{
|
|
686
|
+
m_Manager.continuousMoveProvider.enableStrafe = value;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
void OnUseGravityToggleValueChanged(bool value)
|
|
690
|
+
{
|
|
691
|
+
m_Manager.continuousMoveProvider.useGravity = value;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
void OnGravityApplicationModeDropdownValueChanged(int index)
|
|
695
|
+
{
|
|
696
|
+
m_Manager.continuousMoveProvider.gravityApplicationMode = s_GravityApplicationModeDropdownCache.GetValue(index);
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
void OnForwardSourceDropdownValueChanged(int index)
|
|
700
|
+
{
|
|
701
|
+
m_Manager.moveForwardSource = s_ForwardSourceDropdownCache.GetValue(index);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
void OnContinuousTurnToggleValueChanged(bool value)
|
|
705
|
+
{
|
|
706
|
+
m_Manager.turnStyle = value
|
|
707
|
+
? LocomotionSchemeManager.TurnStyle.Continuous
|
|
708
|
+
: LocomotionSchemeManager.TurnStyle.Snap;
|
|
709
|
+
|
|
710
|
+
RefreshTurnDependentInteractable(value);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
void OnTurnSpeedSliderValueChanged(float value)
|
|
714
|
+
{
|
|
715
|
+
m_Manager.continuousTurnProvider.turnSpeed = value;
|
|
716
|
+
m_TurnSpeedValueText.text = value.ToString();
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
void OnSnapTurnAmountDropdownValueChanged(int index)
|
|
720
|
+
{
|
|
721
|
+
var turnAmount = k_SnapTurnAmounts[index];
|
|
722
|
+
m_Manager.snapTurnProvider.turnAmount = turnAmount;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
void OnEnableTurnAroundToggleValueChanged(bool value)
|
|
726
|
+
{
|
|
727
|
+
m_Manager.snapTurnProvider.enableTurnAround = value;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|