IMHOTEP Framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Properties
Pages
Assets
ThirdParty
SteamVR
InteractionSystem
Core
Scripts
DestroyOnDetachedFromHand.cs
1
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
2
//
3
// Purpose: Destroys this object when it is detached from the hand
4
//
5
//=============================================================================
6
7
using
UnityEngine;
8
using
System.Collections;
9
10
namespace
Valve.VR.InteractionSystem
11
{
12
//-------------------------------------------------------------------------
13
[RequireComponent( typeof( Interactable ) )]
14
public
class
DestroyOnDetachedFromHand
: MonoBehaviour
15
{
16
//-------------------------------------------------
17
private
void
OnDetachedFromHand(
Hand
hand )
18
{
19
Destroy( gameObject );
20
}
21
}
22
}
Valve.VR.InteractionSystem.Hand
Definition:
Hand.cs:19
Valve.VR.InteractionSystem.DestroyOnDetachedFromHand
Definition:
DestroyOnDetachedFromHand.cs:14
Generated by
1.8.6