View BoundingBoxGizmoShell.cs
//
// 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>
View BoundingBoxTarget.cs
//
// 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>
View BoundingBox.cs
//
// 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;
View TransformController.cs
using UnityEngine;
public class TransformController : MonoBehaviour {
[HideInInspector]
public GameObject target;
#region Position
public static float distanceScale = 2f;
#endregion
View ScaleController.cs
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;
View RotationController.cs
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;
View PositionController.cs
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;
View SphereCommandsForEvent.cs
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;
}
View GazeGestureManagerForEvent.cs
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;
View CSharpEventSample.cs
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()
{