Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by connorzlin · Aug 08, 2018 at 04:26 PM · vroculus rift

Hide Oculus Avatar Hands?

Is there a way to hide the OVRAvatarHands when picking up an object?

Thanks!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by bennet-rumboll · Apr 23, 2019 at 12:37 PM

what i di is hiding the SkinnedMeshRenderer of the Oculus hands

 if (RightHand)
         {
             Transform pathToHandR = gameObject.transform.Find("hand_right_renderPart_0");
             SkinnedMeshRenderer RHModel = patheToHandR.GetComponent<SkinnedMeshRenderer>();
             RHModel.enabled = true;
         }
         else
         {
             Transform pathToHandL = gameObject.transform.Find("hand_left_renderPart_0");
             SkinnedMeshRenderer LHModel = patheToHandL.GetComponent<SkinnedMeshRenderer>();
             LHModel.enabled = true;
         }


and then just triggering it when I pick something or let go of something

hope it helps

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by nbalex04 · Oct 05, 2020 at 10:02 AM

You just need to add a script to the LocalAvatar prefab. Then, you can enable or disable HandRight and HandLeft from the OvrAvatar component:

 public class LocalAvatarManager : MonoBehaviour
 {
     private OvrAvatar avatar = null;
 
     private void Start()
     {
         avatar = GetComponent<OvrAvatar>();
     }
 
     public void ShowOrHideRightHand()
     {
         if (avatar.HandRight.enabled)
         {
             avatar.HandRight.enabled = false;
             avatar.HandRight.RenderParts[0].mesh.enabled = false;
         }
         else
         {
             avatar.HandRight.enabled = true;
             // No need to enable the SkinnedMeshRenderer, enabling the hand will do it for you
         }
     }

     public void ShowOrHideLeftHand()
     {
         if (avatar.HandLeft.enabled)
         {
             avatar.HandLeft.enabled = false;
             avatar.HandLeft.RenderParts[0].mesh.enabled = false;
         }
         else
         {
             avatar.HandLeft.enabled = true;
             // No need to enable the SkinnedMeshRenderer, enabling the hand will do it for you
         }
     }
 }
 
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by teana981 · Nov 17, 2020 at 11:37 PM

Can i disable hands avr player?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by cyanUNITY · Dec 12, 2021 at 01:32 PM

Add this script to the hand anchor, and select the controller (R/H hand) depending on the hand and link the skeleton to the one corresponding to that hand.

When the pose is not correct the hand disappears.

  public OVRInput.Controller controller;
         public OVRCustomSkeleton skeleton;
         
         public void SetActiveHands(bool active)
         {
             SkinnedMeshRenderer pathToHand = skeleton.GetComponentInChildren<SkinnedMeshRenderer>();            
             if (pathToHand)
             {
                 pathToHand.enabled = active;
             }
  
         }        
         
         void Update()
         {
             //is valid position
             if (!OVRInput.GetControllerOrientationTracked(controller))
             {
                 //_GestureScoreText.text = controller + " Disabled";
                 SetActiveHands(false);
                 return;
             }
             
         }

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

123 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How can I live stream 360 video on Unity? 0 Answers

SteamVR Oculus Touch controller input not detected 1 Answer

VR 360 Video Overlay,Virtual Reality Video Development 1 Answer

Camera for Monitor is stretched when using VR 1 Answer

How to disable automatic recentering when using OVRCameraRig 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges