Render Texture with OVR Overlay causes Invalid Cast Exception — Oculus
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Render Texture with OVR Overlay causes Invalid Cast Exception

moshangmusicmoshangmusic Posts: 4
NerveGear
I'm attempting to display my UI as a render texture using OVR Overlay. Whenever I assign a render texture in the OVR Overlay script and run, I get the following error "InvalidCastException: Specified cast is not valid.
OVROverlay.LatchLayerTextures () (at Assets/Oculus/VR/Scripts/OVROverlay.cs:453)
OVROverlay.LateUpdate () (at Assets/Oculus/VR/Scripts/OVROverlay.cs:903)"
Normal textures assigned to the script render fine in HMD. Are there any specific settings that the render texture needs to conform to?
This is in Unity 2018.4.2f1.

Comments

  • bmoodyP3bmoodyP3 Posts: 23
    Brain Burst
    I have also had this issue. Were you able to find out why this happens?
Sign In or Register to comment.