-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added hide button for the hand controller.
Summary: Added the hide button to hide hand controller signal from the polyfill. Also added some improvements/bug fixes to the initial commit for controller hiding button: * Added a hidden panel on top of the controller card when the hide button is clicked. This behavior follows the same practice as the `Polyfill` button. * Changed the `_controllerMeshesVisible` into `_controllerMeshesHide` in #87 of `immersive-web-emulator/src/devtool/js/ emulatedDevice.js` which is a boolean array controlled only by the `toggleControllerVisibility` function. This fixes the bug of setting up a wrong initial value for ControllerVisibility. * (i.e. if the hand mode was selected when the emulator launches, both controller meshes would have the visibility set as `false`, then no controller mesh would show up the 1st time user switch the mode to the controller) * Removed the transform control visibility when the controller/hand is hidden. This follows the same behavior as our user object hidden logic. Reviewed By: felixtrz Differential Revision: D54216588 fbshipit-source-id: 143ef338c9cdacfc254d51d55480ec6efd4a83a6
- Loading branch information
1 parent
d5b5dbe
commit 7abf503
Showing
8 changed files
with
113 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters