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
Afficher le fichier Open project: brennon/lightitup Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode Description
Awake ( ) : void
FixedUpdate ( ) : void
OnDestroy ( ) : void
Update ( ) : void

Private Methods

Méthode 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 méthode

public Awake ( ) : void
Résultat void

FixedUpdate() public méthode

public FixedUpdate ( ) : void
Résultat void

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

m_FingerTemplate public_oe property

public GameObject m_FingerTemplate
Résultat GameObject

m_InputParent public_oe property

public GameObject m_InputParent
Résultat GameObject

m_LeapOffset public_oe property

public Vector3 m_LeapOffset
Résultat 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
Résultat Vector3

m_PalmTemplate public_oe property

public GameObject m_PalmTemplate
Résultat GameObject

m_PrimaryHandMaterial public_oe property

The materials to use for the different hands.
public Material m_PrimaryHandMaterial
Résultat Material

m_SecondaryHandMaterial public_oe property

public Material m_SecondaryHandMaterial
Résultat Material

m_ShowInspectorFingers public_oe property

public bool m_ShowInspectorFingers
Résultat bool

m_UnknownHandMaterial public_oe property

public Material m_UnknownHandMaterial
Résultat Material

m_UseFixedUpdate public_oe property

public bool m_UseFixedUpdate
Résultat bool