You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
609 B
21 lines
609 B
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
|
|
//
|
|
// Purpose: Sets this GameObject as inactive when it loses focus from the hand
|
|
//
|
|
//=============================================================================
|
|
|
|
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
namespace Valve.VR.InteractionSystem
|
|
{
|
|
//-------------------------------------------------------------------------
|
|
public class HideOnHandFocusLost : MonoBehaviour
|
|
{
|
|
//-------------------------------------------------
|
|
private void OnHandFocusLost( Hand hand )
|
|
{
|
|
gameObject.SetActive( false );
|
|
}
|
|
}
|
|
}
|