Forum Discussion
stephen_r_ouell
7 years agoHonored Guest
Oculus Rift LocalAvatar Shader Issue with LWRP
Currently having issues in Unity 2018.2.0b1 with the Lightweight Render Pipeline and Oculus rifts shader's. Is there a fix for this? currently the hands in scene view are pink, and when i build, they ...
SaintGabriell
7 years agoExplorer
so i ran into this issue today and created a script to help. its just grabs the newly spawned hands at start and changes their texture. its not a perfect system but it works for me until the get it fixed.
// assign this script to the OVR player
public Material mat; // this is the material you want the hands changed too. drag and drop it in the inspector
private GameObject handLeft;
private GameObject handRight;
//
void Update()
{
// grab the hands based on their name
handRight = GameObject.Find("hand_right_renderPart_0");
handLeft = GameObject.Find("hand_left_renderPart_0");
private GameObject handLeft;
private GameObject handRight;
//
void Update()
{
// grab the hands based on their name
handRight = GameObject.Find("hand_right_renderPart_0");
handLeft = GameObject.Find("hand_left_renderPart_0");
// assuming we've found the hands change the texture
if(handRight !=null && handLeft !=null)
{
handLeft.GetComponent<Renderer>().material = mat;
handRight.GetComponent<Renderer>().material = mat;
Destroy(GetComponent<handMatChange>()); // remove this script so it stops running
}
}
{
handLeft.GetComponent<Renderer>().material = mat;
handRight.GetComponent<Renderer>().material = mat;
Destroy(GetComponent<handMatChange>()); // remove this script so it stops running
}
}
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 13 years ago