Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
omtron's avatar
omtron
Protege
9 years ago
Solved

How do I get transform of index finger tip?

In Unity I'm trying to add a laser appear out of index finger when player points, but I can't figure out how to select the tip of the index finger. Is transform.Find("hands:b_l_index_ignore") the only...
  • Toukokuu's avatar
    9 years ago
    Create a public or a serialized variable for it in a script and drag the transform to the slot in the property inspector.
  • omtron's avatar
    9 years ago
    Solution:

    I added this to the end of AddAvatarComponent() in OvrAvatar.cs:

            try
            {
                middleFingerTip = GameObject.Find("hands:b_r_middle_ignore").transform;
            } catch
            {
                return;
            }