Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

VSCode autocompletion?

zilppurizilppuri Posts: 1
NerveGear
Are the Oculus API methods etc. supposed to work with Unity + VSCode "out of the box", or am I supposed to do something special?

For example, if I try to use OVRInput.Get(), I get the error "The name 'OVRInput' does not exist in the current context [Assembly-CSharp]". However, when I return to the Unty Editor the code compiles fine. How do I get VSCode to recognize the Oculus specific code?
Tagged:

Comments

  • imperativityimperativity Posts: 3,587 Valuable Player
    edited October 2018
    Hi,

    Welcome to the Oculus Developer Forums.

    Let me see if I can get clarity on this request from the integration team.

    EDIT: here is some feedback from our integrations team below:

    "This should work out of the box. Seems a little weird the references to the OculusSDK are only messed up in VSCode and not Unity.

    The developer could try forcing a rebuild of them by exiting Unity and deleting the *.sln, and *.csproj files in the root of his project folder. Then reopening Unity."
Sign In or Register to comment.