AllowTeleportWhileAttachedToHand.cs 598 B

123456789101112131415161718
  1. //======= Copyright (c) Valve Corporation, All rights reserved. ===============
  2. //
  3. // Purpose: Adding this component to an object will allow the player to
  4. // initiate teleporting while that object is attached to their hand
  5. //
  6. //=============================================================================
  7. using UnityEngine;
  8. namespace Valve.VR.InteractionSystem
  9. {
  10. //-------------------------------------------------------------------------
  11. public class AllowTeleportWhileAttachedToHand : MonoBehaviour
  12. {
  13. public bool teleportAllowed = true;
  14. public bool overrideHoverLock = true;
  15. }
  16. }