Editar

Compartir a través de


Microsoft.MixedReality.Toolkit.Experimental.UI Namespace

Classes

AxisSlider

Axis slider is a script to lock a bar across a specific axis.

CapsLockHighlight

This class toggles the Caps Lock image based on the NonNativeKeyboard's IsCapsLocked state

Dock

This control enables moving objects in and out of predetermined positions, to create palettes, shelves and navigation bars.

Dockable

Add a Dockable component to any object that has a Dockable and an ObjectManipulator or ManipulationHandler to make it dockable in Docks. That allows this object to be used as part of a palette, shelf or navigation bar together with other objects.

DockPosition

Represents a position where a Dockable object can be docked. This component also adds a Collider and a Rigidbody, if they're not already present.

HandInteractionHint

This class provides wrapper functionality for triggering animations and fades for the hand rig.

KeyboardInputFieldBase<T>

Base class explicitly launching Windows Mixed Reality's system keyboard for InputField and TMP_InputField To be attached to the same GameObject with either of the components.

KeyboardKeyFunc

Represents a key on the keyboard that has a function.

KeyboardTest

This component links the NonNativeKeyboard to a TMP_InputField Put it on the TMP_InputField and assign the NonNativeKeyboard.prefab

KeyboardValueKey

Represents a key on the keyboard that has a string value for input.

MixedRealityKeyboard

Class that can launch and hide a system keyboard specifically for Windows Mixed Reality devices (HoloLens 2, Windows Mixed Reality).

Implements a workaround for UWP TouchScreenKeyboard bug which prevents UWP keyboard from showing up again after it is closed. Unity bug tracking the issue https://fogbugz.unity3d.com/default.asp?1137074_rttdnt8t1lccmtd3

MixedRealityKeyboardBase

Base class for objects that wish to launch and hide a system keyboard specifically for Windows Mixed Reality devices (HoloLens 2, Windows Mixed Reality).

Implements a workaround for UWP TouchScreenKeyboard bug which prevents UWP keyboard from showing up again after it is closed. Unity bug tracking the issue https://fogbugz.unity3d.com/default.asp?1137074_rttdnt8t1lccmtd3

MixedRealityKeyboardPreview

Component to manage the visuals for a Mixed Reality Keyboard Preview window.

MRTKTMPInputField

A derived class of TMP's InputField to workaround with some issues of typing on HoloLens 2 specific to Unity 2018.4

MRTKUGUIInputField

A derived class of UGUI's InputField to workaround with some issues of typing on HoloLens 2 specific to Unity 2018.4

NonNativeKeyboard

A simple general use keyboard that is ideal for AR/VR applications that do not provide a native keyboard.

NonNativeKeyboardTouchAssistant

Adds touch events to the NonNativeKeyboard buttons (and a tap sound)

PinchSliderBox

Manages and creates sliders to allow for non-uniform scaling of a box along multiple axes. The MinMaxScaleConstraint is used to control the target of the scale and scale constraints.

PinchSpring

Simulates a point mass on a spring that can be used as a grabbable handle.

SliderInputField

This is an input field that overrides getting deselected

StepSlider

A slider with a fixed number of step values that can be moved by grabbing / pinching a slider thumb Number of steps defaults to 0, if number isn't set then slider behaves just like a regular PinchSlider

SymbolDisableHighlight

Updates the visual state of the text based on the buttons state

SymbolKeyboard

This class switches back and forth between two symbol boards that otherwise do not fit on the keyboard entirely

TMP_KeyboardInputField

A component that can be added to InputField to make it work with Windows Mixed Reality's system keyboard. Only used in Unity 2018.4. No longer used in Unity 2019.3 and later versions (becomes an empty MonoBehaviour and is only around for compatibility) and you can safely remove it if you wish

TouchSlider

This control enables touching a slider with one finger to set its value

UI_KeyboardInputField

A component that can be added to InputField to make it work with Windows Mixed Reality's system keyboard. Only used in Unity 2018.4. No longer used in Unity 2019.3 and later versions (becomes an empty MonoBehaviour and is only around for compatibility) and you can safely remove it if you wish

UICollection

This component represents and ordered collection of UI elements. You can add to the UICollection by either dropping UI elements in the UI element this component is attached to in the Editor or by calling the AddItem(RectTransform) method. UI elements that are added to this collection via the Editor will be automatically arranged when this component executes. To use this component attach it to a UI element (a GameObject with a RectTransform component) such as an Image or Panel.

Enums

AxisSlider.EAxis
DockingState

The possible states of a Dockable object.

KeyboardKeyFunc.Function

Possible functionality for a button.

NonNativeKeyboard.LayoutType

Layout type enum for the type of keyboard layout to use.
This is used when spawning to enable the correct keys based on layout type.