Skip to main content
Up and Coming
October 25, 2014

unity project broken after using 0.4.3 update

It takes always some time to make an update work, but the new update 0.4.3 is not working well in my unity project ( using 4.6) . After installing, all the oculus scripts seems to be missing/broken, just can't get them to work on a normal way.

Is hard to point what exactly is the problem, there also seems to be an extra center camera, no idea if this makes a conflict.

I tried multiple times, can be my own fault of not using the update right, but intrested if other people have this problem as well.
    This topic has been closed for replies.

    9 replies

    Inspiring
    October 25, 2014
    We've tested with Unity 4.5.2f1, 4.5.5f1, and 5.0.0b7. 4.6 should work, but some users have run into issues with OVRShimLoader.cs. If you are using Unity 4.6 you can comment out any references to PlayerSettings.d3d11ForceExclusiveMode and visibleInBackground. Are you seeing other issues?
    sh0v0r
    Up and Coming
    October 25, 2014
    Did you read the migration guide? There are some significant changes and it is recommended to delete all OVR assets and then import the new one then replace all your controllers. It's a pain I know...
    Up and Coming
    October 25, 2014
    It is not a big deal, if it is tested well, it should work, just wondering if other devs had these script errors, the previous version had it also, but this was easy to fix by removing everything and re install the asset + runtime
    Up and Coming
    October 25, 2014
    "sh0v0r" wrote:
    Did you read the migration guide?...


    Cool, I didn't see a migration guide in the documentation, can you post a link to that? Thanks.

    edit: I found it, it's in the Unity integration guide
    Inspiring
    October 27, 2014
    I just tested with Unity 4.6.0b21 Pro. Everything works, including the new UGUI-based OVRMainMenu, after I make the following changes:

    Change
    #if (UNITY_5 || UNITY_4_6 || (UNITY_4_5 && !(UNITY_4_5_0 || UNITY_4_5_1 || UNITY_4_5_2 || UNITY_4_5_3 || UNITY_4_5_4)))

    to
    #if (UNITY_4_5_5)


    If you want to use UGUI:

    Uncomment
    #define USE_NEW_GUI


    Change
    RenderMode.World

    to
    RenderMode.WorldSpace
    Up and Coming
    October 27, 2014
    Glad to see a solution, i downgraded back to 4.5, everything worked well, now i can go back to 4.6, thanx. I also discovered somerhing else, after using 0.4.3 i had not a stable framerate, sometimes it droped to 40 Fps. When working with o.4.2 i have a very stable fps of 75. Interested if anyone else having this in unity.
    October 27, 2014
    @blenderpedia
    See this other thread about the performance drop from 0.4.2 to 0.4.3. It may apply to you:
    viewtopic.php?f=37&t=16287

    @vrdaveb
    Appreciate your posts in here. I'm going to go try out the UGUI stuff as I have been trying to move over to that for my own GUI (was using modded NGUI up until now).

    ccs
    Inspiring
    October 29, 2014
    "blenderpedia" wrote:
    after using 0.4.3 i had not a stable framerate, sometimes it droped to 40 Fps. When working with o.4.2 i have a very stable fps of 75.

    Does the issue go away if you switch to extended mode? This sounds similar to https://developer.oculusvr.com/forums/viewtopic.php?f=37&t=16223.
    Up and Coming
    October 29, 2014
    I already figured out what is happening : viewtopic.php?f=37&t=16287

    now working with 0.4.2, and everything works fine