Build Your First Vr App
Hey everyone! I started the build your first VR app tutorial here from oculus, but I keep getting NullReferenceException errors from the ColorController.cs file. Here is where I get the errors: // Assigns the component's renderer instance rend = GetComponent<Renderer>(); rend.enabled = true; displayText.text = ""; // Checks if the player ball has collided with the wall. if (col.gameObject.name == "player-ball") { displayText.text = "Ouch!"; rend.sharedMaterial = wallMaterial[0]; } // It is called when the ball moves away from the wall private void OnCollisionExit(Collision col) { if (col.gameObject.name == "player-ball") { rend.sharedMaterial = wallMaterial[1]; displayText.text = "Keep Rolling..."; } } I am not able to see the text or colours change whenever the ball is rolling, or when it hits the wall. The app runs fine other than that. Please let me know if you guys have any solutions/tips. Thank you.899Views0likes1CommentFirst VR App tutorial errors
Hey guys, I started the build your first VR app tutorial here from oculus, but I keep getting NullReferenceException errors from the ColorController.cs file. Here is where I get the errors: // Assigns the component's renderer instance rend = GetComponent<Renderer>(); rend.enabled = true; displayText.text = ""; // Checks if the player ball has collided with the wall. if (col.gameObject.name == "player-ball") { displayText.text = "Ouch!"; rend.sharedMaterial = wallMaterial[0]; } // It is called when the ball moves away from the wall private void OnCollisionExit(Collision col) { if (col.gameObject.name == "player-ball") { rend.sharedMaterial = wallMaterial[1]; displayText.text = "Keep Rolling..."; } } I am not able to see the text change whenever the ball is rolling, or when it hits the wall. The app runs fine other than that. Please let me know if you guys have any solutions/tips. Thank you.1.4KViews0likes3CommentsError after upgrading from unity 2019.1.13f1 to 2019.2.5f1
I'm working on a quest vr project, and i'm using Oculus Intergration 1.38 Recently i have updated the project to the latest unity version. But after a build i get the following error. I tried to renew the manifest, but it didnt work. Anyone know how to solve this? NullReferenceException: Object reference not set to an instance of an object UnityEditor.XR.Oculus.OculusManifest.UpdateOrCreateNameValueElementsInTag (System.Xml.XmlDocument doc, System.String parentPath, System.String tag, System.String firstName, System.String firstValue, System.String secondName, System.String secondValue, System.String thirdName, System.String thirdValue) (at Library/PackageCache/com.unity.xr.oculus.android@1.38.3/Editor/OculusBuildProcessor.cs:60) UnityEditor.XR.Oculus.OculusManifest.OnPostGenerateGradleAndroidProject (System.String path) (at Library/PackageCache/com.unity.xr.oculus.android@1.38.3/Editor/OculusBuildProcessor.cs:130) UnityEditor.Android.AndroidBuildPipelineInterfaces.OnGeneratePlatformProjectPostprocess (System.String path, System.Boolean strict) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Android/AndroidPostGenerateGradleProject.cs:39) UnityEngine.GUIUtility rocessEvent(Int32, IntPtr)1.9KViews0likes4Comments