Class MixedRealityControllerInfo
This script keeps track of the GameObjects representations for each button on the Mixed Reality Controllers.
It also keeps track of the animation Transforms in order to properly animate according to user input.
Inheritance
MixedRealityControllerInfo
Assembly: cs.temp.dll.dll
public class MixedRealityControllerInfo
Constructors
Declaration
public MixedRealityControllerInfo(GameObject controllerParent, Handedness handedness)
Parameters
Type |
Name |
Description |
GameObject |
controllerParent |
|
Handedness |
handedness |
|
Declaration
public MixedRealityControllerInfo(GameObject controllerParent, Handedness handedness)
Parameters
Type |
Name |
Description |
GameObject |
controllerParent |
|
Handedness |
handedness |
|
Fields
Declaration
public readonly GameObject ControllerParent
Field Value
Type |
Description |
GameObject |
|
Declaration
public readonly GameObject ControllerParent
Field Value
Type |
Description |
GameObject |
|
Declaration
public readonly Handedness Handedness
Field Value
Type |
Description |
Handedness |
|
Declaration
public readonly Handedness Handedness
Field Value
Type |
Description |
Handedness |
|
Methods
Declaration
public void AnimateGrasp(bool isGrasped)
Parameters
Type |
Name |
Description |
Boolean |
isGrasped |
|
Declaration
public void AnimateGrasp(bool isGrasped)
Parameters
Type |
Name |
Description |
Boolean |
isGrasped |
|
Declaration
public void AnimateHome(bool isHomePressed)
Parameters
Type |
Name |
Description |
Boolean |
isHomePressed |
|
Declaration
public void AnimateHome(bool isHomePressed)
Parameters
Type |
Name |
Description |
Boolean |
isHomePressed |
|
Declaration
public void AnimateMenu(bool isMenuPressed)
Parameters
Type |
Name |
Description |
Boolean |
isMenuPressed |
|
Declaration
public void AnimateMenu(bool isMenuPressed)
Parameters
Type |
Name |
Description |
Boolean |
isMenuPressed |
|
Declaration
public void AnimateSelect(float newSelectPressedAmount)
Parameters
Type |
Name |
Description |
Single |
newSelectPressedAmount |
|
Declaration
public void AnimateSelect(float newSelectPressedAmount)
Parameters
Type |
Name |
Description |
Single |
newSelectPressedAmount |
|
Declaration
public void AnimateThumbstick(bool isThumbstickPressed, Vector2 newThumbstickPosition)
Parameters
Type |
Name |
Description |
Boolean |
isThumbstickPressed |
|
Vector2 |
newThumbstickPosition |
|
Declaration
public void AnimateThumbstick(bool isThumbstickPressed, Vector2 newThumbstickPosition)
Parameters
Type |
Name |
Description |
Boolean |
isThumbstickPressed |
|
Vector2 |
newThumbstickPosition |
|
Declaration
public void AnimateTouchpad(bool isTouchpadPressed, bool isTouchpadTouched, Vector2 newTouchpadPosition)
Parameters
Type |
Name |
Description |
Boolean |
isTouchpadPressed |
|
Boolean |
isTouchpadTouched |
|
Vector2 |
newTouchpadPosition |
|
Declaration
public void AnimateTouchpad(bool isTouchpadPressed, bool isTouchpadTouched, Vector2 newTouchpadPosition)
Parameters
Type |
Name |
Description |
Boolean |
isTouchpadPressed |
|
Boolean |
isTouchpadTouched |
|
Vector2 |
newTouchpadPosition |
|
Iterates through the Transform array to find specifically named GameObjects.
These GameObjects specify the animation bounds and the GameObject to modify for button,
thumbstick, and touchpad animation.
Declaration
public void LoadInfo(Transform[] childTransforms, MixedRealityControllerVisualizer motionControllerVisualizer)
Parameters
Iterates through the Transform array to find specifically named GameObjects.
These GameObjects specify the animation bounds and the GameObject to modify for button,
thumbstick, and touchpad animation.
Declaration
public void LoadInfo(Transform[] childTransforms, MixedRealityControllerVisualizer motionControllerVisualizer)
Parameters
Declaration
public void SetRenderersVisible(bool visible)
Parameters
Type |
Name |
Description |
Boolean |
visible |
|
Declaration
public void SetRenderersVisible(bool visible)
Parameters
Type |
Name |
Description |
Boolean |
visible |
|
Declaration
public bool TryGetElement(MixedRealityControllerInfo.ControllerElementEnum element, out Transform elementTransform)
Parameters
Returns
Declaration
public bool TryGetElement(MixedRealityControllerInfo.ControllerElementEnum element, out Transform elementTransform)
Parameters
Returns