Skip to main content
Up and Coming
July 4, 2017

OVROverlay.cs(385,20): error CS1501: No overload for method `CreateExternalTextur

I use Unity Unity 2017.1.0b8 (64-bit), I get error
Assets/OVR/Scripts/OVROverlay.cs(385,20): error CS1501: No overload for method `CreateExternalTexture' takes `6' arguments

I am very on the  wtf   side with solving  this,  any ideas?
    This topic has been closed for replies.

    19 replies

    New Participant
    August 9, 2017
    This also worked for me too
    Inspiring
    August 10, 2017
    Also having the same issues
    Updated the two lines of code in the editor, got the 4 new errors like the poster above.

    I can't see where the method is created in the file?

    How to reproduce?
    Start new project.
    Import Custom Package --> OculusUtilities.unitypackage
    Once imported
    errors

    Participant
    August 10, 2017
    @andysonofbob
    Open up the OVROverlay.cs script, find line 385 and delete "isSrgb, " from that line. That should do it

    Inspiring
    August 10, 2017
    Soz  That didnt work.

    Assets/OVR/Scripts/OVROverlay.cs(385,20): error CS1501: No overload for method `CreateExternalTexture' takes `5' arguments
    I also tried removing the argument from the else too.  It then gave two errors

    I am also getting this error.  I seem to log in fine though...

    Error loading launcher://unity/C:/Users/[SNIP]/AppData/Roaming/Unity/Packages/node_modules/unity-editor-home/dist/index.html?code=giCk8xeUP56X1XIctEW82Q00af&locale=en&session_state=b5c3f7321a9bde0d303f1d666289ef558480a2491dc7fca89e553ee7564e1db8.yaP4gRFOlLqiiAdtz9MEng01bf#/login


    August 10, 2017
    I am stuck on this issue as well. proposed changes just created more issues :)
    New Participant
    August 11, 2017

    Pinelli said:

    I was having the same issue and the change mentioned above from

    et = Cubemap.CreateExternalTexture(size.w, size.h, txFormat, mipLevels > 1, isSrgb, externalTex);

    To

    et = Cubemap.CreateExternalTexture(size.w, txFormat, mipLevels > 1, externalTex);

    solved the errors on rebuild for me.


    yep, this solved the issue for me as well. 

    also, I opted to download oculus utilities 1.15.0 instead of the latest (1.16-beta as of this writing), so this issue might already be fixed in the latest without manual intervention.
    New Participant
    September 9, 2017
    @iamtheonly Thanks For solution. Worked for me,
    Up and Coming
    September 12, 2017
    Same issue here. All my stuff was quite out of date so now I am on the latest Oculus, Unity and Utilities. I'll try the fix but the notes say we probably shouldn't be editing these scripts so it would be nice to have it fixed properly.

    Edit: Fix worked good. Looks like some kind of regression maybe?
    New Participant
    September 24, 2017
    using Unity 2017.1.1f1, latest SDK, same error.
    Fixed worked OK for me as well.