-
Notifications
You must be signed in to change notification settings - Fork 4
Common Issues
Problem:
When importing the SteamVR Unity package into this repository's Unity project, or into your own Unity project that uses HaRT, it might happen that the VR controllers are rendered in pink/mangenta.
Solution:
To fix this issue, simply locate the Model
GameObjects of the controllers in the [CameraRig]
hierarchy:
Now add the shader Standard
(instead of None
) as shown below.
Save your changes and re-start the scene. The controller should render correctly now.
Problem:
The HaRT_core prefab
cannot find the TargetCollisionManager script which should be attached to each fingertip of the realHand (missing mono script).
Furthermore it cannot find the ResetPosition prefab (missing prefab).
Solution:
-
Go to the Player prefab which is in the HaRT_core prefab. Then go to the last child of each realHand fingertip. Then drag the TargetCollisionManager script onto the missing mono script field. (Hint: When pressing STRG you can mark all fingertips at once)
-
Go to the HaRT_core prefab and delete the missing ResetPosition prefab. Afterwards, drag the new ResetPosition prefab into the prefab again.
When fixing the HaRT_Leap
you can proceed as described in the solution above. (Note: The HaRT_Leap does not have a Player prefab - therefore the fingertip adjustments have to be done inside the HaRT_Leap prefab)
Problem:
When adding the packages the layer sortings get lost. Therefore some gameObjects do not have the correct layer anymore.
Solution:
-
Go into the
Physical Cube
prefab and select thePhysical Object
layer. -
Go into the
Player
prefab. Go to theReal Hand
/Virtual Hand
and select the Physical Hand / Virtual Hand Layer.
Then press yes to apply it to all children.
-
Go to the
Real Camera
/Virtual Camera
(child of corresponding hand). Open the prefab, check the physical elements and uncheck the virtual & visualization elements / uncheck the physical & visualization elements and check the virtual elements.