C# Class LeapUnityBridge, lightitup

Attach one of these to one of the objects in your scene to use Leap input. It will take care of calling update on LeapInput and create hand objects to represent the hand data in the scene using LeapUnityHandController. It has a number of public fields so you can easily set the values from the Unity inspector. Hands will
Inheritance: MonoBehaviour
ファイルを表示 Open project: brennon/lightitup Class Usage Examples

Public Properties

Property Type Description
m_FingerTemplate GameObject
m_InputParent GameObject
m_LeapOffset Vector3
m_LeapScaling Vector3
m_PalmTemplate GameObject
m_PrimaryHandMaterial Material
m_SecondaryHandMaterial Material
m_ShowInspectorFingers bool
m_UnknownHandMaterial Material
m_UseFixedUpdate bool

Public Methods

Method Description
Awake ( ) : void
FixedUpdate ( ) : void
OnDestroy ( ) : void
Update ( ) : void

Private Methods

Method Description
CreateFinger ( GameObject parent, int index ) : GameObject
CreateHand ( GameObject parent, int index ) : GameObject
CreatePalm ( GameObject parent, int index ) : GameObject
CreateSceneHands ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

m_FingerTemplate public_oe property

public GameObject m_FingerTemplate
return GameObject

m_InputParent public_oe property

public GameObject m_InputParent
return GameObject

m_LeapOffset public_oe property

public Vector3 m_LeapOffset
return Vector3

m_LeapScaling public_oe property

These values, set from the Inspector, set the corresponding fields in the LeapUnityExtension for translating vectors.
public Vector3 m_LeapScaling
return Vector3

m_PalmTemplate public_oe property

public GameObject m_PalmTemplate
return GameObject

m_PrimaryHandMaterial public_oe property

The materials to use for the different hands.
public Material m_PrimaryHandMaterial
return Material

m_SecondaryHandMaterial public_oe property

public Material m_SecondaryHandMaterial
return Material

m_ShowInspectorFingers public_oe property

public bool m_ShowInspectorFingers
return bool

m_UnknownHandMaterial public_oe property

public Material m_UnknownHandMaterial
return Material

m_UseFixedUpdate public_oe property

public bool m_UseFixedUpdate
return bool