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.
When you open the script, it says:
// 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
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;
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.
© 2024 OneMinuteCode. All rights reserved.