Class RealHandModel
Implementation of RealHandModel prefab
Inheritance
Namespace: TofAr.V0.Hand
Assembly: TofArHandAssembly.dll
Syntax
public class RealHandModel : MonoBehaviour
Fields
autoRotate
true: Automatically rotate model based on device rotation
false: Model auto rotation off
Default: true
Declaration
[SerializeField]
public bool autoRotate
Field Value
Type |
---|
System.Boolean |
handArmatureLeft
Left hand armature
Declaration
public Transform handArmatureLeft
Field Value
Type |
---|
UnityEngine.Transform |
handArmatureRight
Right hand armature
Declaration
public Transform handArmatureRight
Field Value
Type |
---|
UnityEngine.Transform |
leftJoints
Array of left hand joint objects
Declaration
public Transform[] leftJoints
Field Value
Type |
---|
UnityEngine.Transform[] |
rightJoints
Array of right hand joint objects
Declaration
public Transform[] rightJoints
Field Value
Type |
---|
UnityEngine.Transform[] |
Properties
CurrentHandModelIndex
Current applied hand model's index in the handModels array
Declaration
public int CurrentHandModelIndex { get; protected set; }
Property Value
Type |
---|
System.Int32 |
LeftHandModel
Left hand’s HandModel (handBoneRemapper3 Object)
Declaration
public IHandModel LeftHandModel { get; }
Property Value
Type |
---|
IHandModel |
RightHandModel
Right hand’s HandModel (handBoneRemapper3 Object)
Declaration
public IHandModel RightHandModel { get; }
Property Value
Type |
---|
IHandModel |
Methods
ChangeHandMaterial(Int32)
Change hand model
Declaration
public void ChangeHandMaterial(int materialIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | materialIndex | Index in the RealHandModel.handModels array of the hand model to apply |
GetObjectNames()
Get object names
Declaration
public List<string> GetObjectNames()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | List of names |
ShowRealHandToggleChanged(Boolean)
Change hand model
Declaration
public void ShowRealHandToggleChanged(bool enabled)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | enabled | If true, show hand model and enabled Collider, if false, hide hand model and disable Collider |