OpenVR Initialization Fails on Unity 5

Asked 2 years ago, Updated 2 years ago, 53 views

I'm a Unity & Programming beginner.
The version is 5.5.1.

I want to use SteamVR and EditorVR in Unity 5, but I get an error and I can't press the play button.

Screenshot of Unity operation screen

  • VR:OpenVR Error!OpenVR failed initialization with error code VRinitError_Init_PathRegistryNotFound: "Installation path could not be located (110)!"
  • Assets/EditorVR/Workspaces/Project/Scripts/AssetGridItem.cs(246,13): error CS1061: Type `UnityEngine.Render' does not contain a definition for `motionVectors' and no extension method `motionVectors' of type `UnityEngine.Render' could be found.

When you open the script, it says:

Screenshot of actual programs

 // Turn off extended render settings
    foreach(var render in m_PreviewObjectTransform.GetComponentsInChildren<Render>())
    {
        render.shadowCastingMode=UnityEngine.Rending.ShadowCastingMode.Off;
        render.receiveShadows=false;
        render.reflectionProbeUsage=UnityEngine.Rending.ReflectionProbeUsage.Off;
        render.motionVectors=false;
    }

Unity, there are no errors immediately after SteamVR download and
While creating objects and setting up cameras,
I noticed an error.

How can I solve this problem?

I look forward to your kind cooperation.

c# unity3d

2022-09-30 14:54

2 Answers

I checked the Unity document and it seems that the property Render.motionVectors does not exist in the first place.

I checked the 5.3 series and 5.5 series just in case, but they didn't exist in the same way.
There is a high possibility that the code itself is incorrect even though you copied it from a site somewhere.

You can comment out the line below.

render.motionVectors=false;
// render.motionVectors=false;


2022-09-30 14:54

The reason may be that the Unity version is too high.

According to this Q&A, EditorVR does not seem to follow API changes in Unity 5.5 as of January 2017.Try lowering the Unity version or using the experimental Unity 5.4.3 Editor build on Q&A.


2022-09-30 14:54

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.