playMaker

Author Topic: How do I determine the object I hold using 'currentAttachedObject' command?  (Read 4251 times)

Ryan97

  • Playmaker Newbie
  • *
  • Posts: 1
Hi there!

I was facing problem in Unity SteamVR where I cannot determine the type of object hold by hand in the VR environment. Is 'currentAttachedObject' applicable for only null or non-null? Because when I specify (hand.currentAttachedObject == SpecificObjectName), it won't works; while if I just determine whether there are any object attached to hand using (hand.currentAttachedObject != null), it works fine. Any kind souls willing to help? Thanks a lot!