Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
malospam's avatar
malospam
Honored Guest
12 years ago

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!

4 Replies

  • Those 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?
  • yes 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.
  • Strange, 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.
  • Ahh 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!