This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Copyright (c) Microsoft Corporation. All rights reserved. | |
// Licensed under the MIT License. See LICENSE in the project root for license information. | |
// | |
using HUX.Buttons; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace HUX.Interaction { | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Copyright (c) Microsoft Corporation. All rights reserved. | |
// Licensed under the MIT License. See LICENSE in the project root for license information. | |
// | |
using HUX.Buttons; | |
using UnityEngine; | |
namespace HUX.Interaction | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Copyright (c) Microsoft Corporation. All rights reserved. | |
// Licensed under the MIT License. See LICENSE in the project root for license information. | |
// | |
using HUX.Buttons; | |
using HUX.Focus; | |
using HUX.Receivers; | |
using System.Collections.Generic; | |
using UnityEngine; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class TransformController : MonoBehaviour { | |
[HideInInspector] | |
public GameObject target; | |
#region Position | |
public static float distanceScale = 2f; | |
#endregion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using HoloToolkit.Unity.InputModule; | |
using UnityEngine; | |
public class ScaleController : MonoBehaviour, IInputHandler, ISourceStateHandler { | |
public GameObject target; | |
public bool IsDraggingEnable = true; | |
private bool isDragging; | |
private Camera mainCamera; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using HoloToolkit.Unity.InputModule; | |
using UnityEngine; | |
public class RotationController : MonoBehaviour, IInputHandler, ISourceStateHandler { | |
public GameObject target; | |
public bool IsDraggingEnable = true; | |
private bool isDragging; | |
private Camera mainCamera; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using HoloToolkit.Unity; | |
using HoloToolkit.Unity.InputModule; | |
using UnityEngine; | |
public class PositionController : MonoBehaviour, IInputHandler, ISourceStateHandler { | |
public GameObject target; | |
private Interpolator interpolator; | |
public bool IsDraggingEnable = true; | |
private bool isDragging; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.EventSystems; | |
public class SphereCommandsForEvent : MonoBehaviour, ISelectable { | |
public void OnSelect() { | |
if(!this.GetComponent<Rigidbody>()) { | |
var rigidbody = this.gameObject.AddComponent<Rigidbody>(); | |
rigidbody.collisionDetectionMode = CollisionDetectionMode.Continuous; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.VR.WSA.Input; | |
public class GazeGestureManager : MonoBehaviour { | |
public static GazeGestureManager Instance { get; private set; } | |
public GameObject FocusedObject { get; private set; } | |
GestureRecognizer recognizer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
public class SampleEventArgs : EventArgs | |
{ | |
public int x { get; private set; } | |
public int y { get; private set; } | |
public SampleEventArgs(int x, int y) : base() | |
{ |
NewerOlder