Integrate command and control cube to the toolbox
Description
Add the control cube as a new tool to the package. It is a menu that can define shortcuts to different action in a virtual reality application. It consists of cubes divided into horizontal levels of cubes, each one leading to an associated action.
The tool needs the XRI Interaction Toolkit, as well as the Unity Input System in order to work.
The cube is always aligned with the floor, points to the direction of the controller and appears on demand by pressing and holding a defined input at a defined position from the assigned controller.
A yellow sphere appears then at the center of the control cube, and moving the controller associated to it will also move the sphere. This sphere is defining which cube we are choosing. A display system based on transparency help the user choosing one of the cubes. After choosing a cube with the sphere, releasing the input triggers the events associated to the cube. These events and the control cube creation parameters can be modified if necessary.
The tool contains materials for the Unity standard render pipeline and the URP.
Testing
The control cube was tested both with Unity Play Mode and after a build. It is also fully compatible with the Workbench and the Meta Quest 2. The scenario tested on the Workbench was to change the color of a cube in a scene with the help of the control cube. This scenario can be replayed with the scene "SampleWorkbench" in Unity. The first horizontal level will disable the cube rendering. The second one will change its color to grey, and the third one will change its color to blue. With the Meta Quest 2, the scenario is the same but takes place in a different scene