You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ViveRoleProperty.ToRole<TRole>(), it returns Invalid everytime.
I guess, that the problem is in line 167: if (m_roleType != typeof(TRole) || roleInfo.TryGetRoleByName(m_roleValueName, out role))
You have m_roleValueName parameter in method that is getting the role from Dictionary. After replacing it with m_roleTypeFullName everything works fine.
The text was updated successfully, but these errors were encountered:
Thanks, I actually missed a negation operator.
It should be if (m_roleType != typeof(TRole) || !roleInfo.TryGetRoleByName(m_roleValueName, out role))
meaning that returns invalid if role type not match or the value string not found in roleInfo.
When using
ViveRoleProperty.ToRole<TRole>()
, it returnsInvalid
everytime.I guess, that the problem is in line 167:
if (m_roleType != typeof(TRole) || roleInfo.TryGetRoleByName(m_roleValueName, out role))
You have
m_roleValueName
parameter in method that is getting the role from Dictionary. After replacing it withm_roleTypeFullName
everything works fine.The text was updated successfully, but these errors were encountered: