Forum Discussion

Bluewave41's avatar
Bluewave41
Honored Guest
17 days ago

All in one SDK compile errors

When added to a brand new XR sample project in Unity the following compile errors exist:

Library/PackageCache/com.meta.xr.sdk.core@06273138c40d/Scripts/OVRPlugin.cs(4452,16): error CS0029: Cannot implicitly convert type 'bool' to 'OVRPlugin.Result'

Library/PackageCache/com.meta.xr.sdk.core@06273138c40d/Scripts/OVRPlugin.cs(4452,9): error CS0177: The out parameter 'acquiredIndex' must be assigned to before control leaves the current method

Library/PackageCache/com.meta.xr.sdk.core@06273138c40d/Scripts/OVRPlugin.cs(5343,9): error CS0177: The out parameter 'hapticsProperties' must be assigned to before control leaves the current method

This happens in 6000.3.2f1, 6000.1.1f1 and 6000.0.64f1. There is no mention on the store page of it not working in these versions. And no, deleting the Library folder does nothing to fix this.

2 Replies

  • This was done on purpose to screw Linux users who want to experiment regardless of it being a supported platform or not. Thanks. These errors are AMAZING for discovering why something doesn't work /s. Why print a nice error message when you can just return false in a function that expects to return an OVRPlugin.Result and break compliation instead?

  • Just ran into this. You have to be kidding me.

    These errors seem trivial to fix, but in the context of an external plugin this is a nightmare.

→ Find helpful resources to begin your development journey in Getting Started

→ Get the latest information about HorizonOS development in News & Announcements.

→ Access Start program mentor videos and share knowledge, tutorials, and videos in Community Resources.

→ Get support or provide help in Questions & Discussions.

→ Show off your work in What I’m Building to get feedback and find playtesters.

→ Looking for documentation?  Developer Docs

→ Looking for account support?  Support Center

→ Looking for the previous forum?  Forum Archive

→ Looking to join the Start program? Apply here.

 

Recent Discussions