Playmaker Forum

PlayMaker Help & Tips => VR Help => Topic started by: Ryan97 on March 12, 2020, 03:02:19 AM

Title: How do I determine the object I hold using 'currentAttachedObject' command?
Post by: Ryan97 on March 12, 2020, 03:02:19 AM
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!