Skip to content

Example 10.ControllerTooltips

ChengNan Yang edited this page Jan 3, 2024 · 1 revision

This example will guide you how to customize controller tooltips to fit your needs.

  • Steps to config your project

image

  1. Checked Simulator under Edit>Preference...>VIU Settings
  2. Change Device Index 1 and 2 to Vive Focus 3 Controller
  3. Change Override Model to Vive Focus 3 Controller for both RightModel and LeftModel

image

  1. Under Tooltip>TooltipRenderer, set Vive Focus 3 Controller to corresponding tooltip rig asset

image

  1. In Play mode, you can see Teleport and Open Menu labels on right controller

image

  • Modify ModeManager.cs to meet your needs. By default, it is set to Right controller
  • How to adjust tooltip rig asset
  1. By default, it is set to Raw mode(PoseMode) for Vive Focus 3 controller

image

  1. Modify Button Position/Normal, drag your transform to yellow box
  2. Modify Label Position/Normal/Up, drag your transform to blue box