mixedreality/com.microsoft.mixedreality..../SDK/Features/UX/Scripts/Tooltips
Santiago Lo Coco 4902527289 Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
..
TooltipEnums Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
DestroyOnAnimationComplete.cs Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
DestroyOnAnimationComplete.cs.meta Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
IToolTipBackground.cs Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
IToolTipBackground.cs.meta Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
IToolTipHighlight.cs Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
IToolTipHighlight.cs.meta Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
README.md Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
README.md.meta Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
SpeechConfirmationTooltip.cs Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
SpeechConfirmationTooltip.cs.meta Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTip.cs Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTip.cs.meta Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTipBackgroundBlob.cs Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTipBackgroundBlob.cs.meta Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTipBackgroundCorners.cs Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTipBackgroundCorners.cs.meta Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTipBackgroundMesh.cs Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTipBackgroundMesh.cs.meta Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTipConnector.cs Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTipConnector.cs.meta Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTipLineHighlight.cs Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTipLineHighlight.cs.meta Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTipSpawner.cs Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTipSpawner.cs.meta Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTipUtility.cs Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
ToolTipUtility.cs.meta Add toolkit.foundation package 2024-10-13 18:54:27 +02:00
TooltipEnums.meta Add toolkit.foundation package 2024-10-13 18:54:27 +02:00

README.md

Mixed Reality Toolkit - SDK - UX - Tooltips support

As part of the Mixed Reality Toolkit SDK, we provide scripts / controls for managing and implementing tooltips in your Mixed Reality project.

Currently we provide components for:

Tooltips

Manages the bulk of the tooltip display, content sizing and anchor behaviors. Also contains the text field for what a tooltip's text field should convey.

  • Provides a field to show the connected Line Data Provider (see Lines section)

Lines

Mixed Reality Toolkit has a line concept built on top of Unity's LineRenderer concept allowing for more expressive lines. Begin with a LineDataProvider (Such as SimpleLine, Spline, or Parabola). A tooltip will look for a LineDataProvider automatically and then attempt to use it to connect the tooltip to the indicated Anchor. The line appearance and behavior can be styled and controlled in a MixedRealityLineRenderer component.

Note: Not all LineDataProviders will work with Tooltips in a predictable manner.

  • SimpleLine, Spline, ParabolaConstrained are the reasonable examples (and a prefab for each exists)
  • Ellipse, Rectangle, ParabolaLine and ParabolaPhysicalLine tend to be less reliable or produce non-useful results.

TooltipSpawner

A TooltipSpawner is a mostly standalone script that receives Focus or Input events (assuming it has a collider) that can be used to instantiate a tooltip at a particular location with certain behaviors. You can control the appear and vanish conditions as well as how it responds to input.

If you are using a TooltipSpawner, customize the tooltip prefab in the [Tool Tip Prefab] field to change the line/tooltip appearance.