Forum Discussion
malospam
12 years agoHonored Guest
weird "obsolete" error
I have created empty scenes, and even loaded the integration file by itself, and I get these errors immediately. Because of them I can't test the oculus. Is anyone else getting the errors(i have also attached an image showing the errors):
Assets/OVR/Editor/OVRPlayerControllerEditor.cs(72,22): warning CS0618: `UnityEditor.Undo.ClearSnapshotTarget()' is obsolete: `Use Undo.RecordObject instead'....etc etc.
It keeps telling me that the functions are obsolete and to use "Use Undo.RecordObject instead"

Thanks!
Assets/OVR/Editor/OVRPlayerControllerEditor.cs(72,22): warning CS0618: `UnityEditor.Undo.ClearSnapshotTarget()' is obsolete: `Use Undo.RecordObject instead'....etc etc.
It keeps telling me that the functions are obsolete and to use "Use Undo.RecordObject instead"

Thanks!
4 Replies
- Felix12gHonored GuestThose are actually just warnings. The oculus integration prior to 4.3 is using methods that were phased out in 4.3. You should have no problems running your tests with just the warnings. Do you have any errors showing up preventing you from running your scene?
- malospamHonored Guestyes it gives one red error that stops me from testing. it says: '' is an incorrect path for a scene file. BuildPlayer expects paths relative to the project folder.
- Felix12gHonored GuestStrange, how are you opening your scene? That error sounds like you're trying to run a scene from a different project than the one you have loaded in the editor.
Two things to try:
1) Try re-opening your scene from your project tab in the editor by double clicking on the scene file.
2) Try doing a save-as of the scene you want to run and make sure you save it in your assets folder. Then open that new scene and try to run. - malospamHonored GuestAhh ok, i its running now. For some reason, when i load the integrated oculus file, i have to save the scene before i run it. thanks!
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
- 6 months ago
- 2 years ago